Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.92MB] [CPU: ▼30.61ms] Passed 4 tests
This is a short check of server-side resources used by SymfoPress Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.43 ▲1.73 |
Dashboard /wp-admin | 3.02 ▼0.28 | 26.07 ▼22.86 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 23.98 ▼21.88 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 23.27 ▼66.11 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 23.93 ▼11.59 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SymfoPress Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.56 | 1.63 ▼0.20 | 38.96 ▼4.32 |
Dashboard /wp-admin | 2,210 ▲19 | 5.84 ▲0.83 | 112.25 ▲7.72 | 40.82 ▼2.00 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 33.38 ▼1.72 | 35.50 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.45 ▲5.94 | 656.99 ▲57.61 | 48.48 ▼1.19 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.05 | 98.25 ▼15.58 | 45.06 ▼4.35 |
SymfoPress Lite /wp-admin/symfopress-lite.php | 26 | 0.44 | 0.37 | 13.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/symfopress-lite/web/config.php
- > /wp-content/plugins/symfopress-lite/app/check.php
- > /wp-content/plugins/symfopress-lite/symfopress-lite.php
- > /wp-content/plugins/symfopress-lite/validator.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
file_get_contents(wp-content/plugins/symfopress-lite/app/../vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.php): failed to open stream: No such file or directory in wp-content/plugins/symfopress-lite/app/SymfonyRequirements.php on line 534
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/symfopress-lite/app/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/symfopress-lite/app/autoload.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension' not found in wp-content/plugins/symfopress-lite/src/Netandreus/SymfopressBundle/DependencyInjection/NetandreusSymfopressExtension.php:15
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/symfopress-lite/app/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/symfopress-lite/app/autoload.php on line 9
- > PHP Fatal error
Uncaught Error: Call to a member function setParameter() on null in wp-content/plugins/symfopress-lite/app/config/wp-settings.php:19
- > PHP Warning
require(wp-content/plugins/symfopress-lite/app/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/symfopress-lite/app/autoload.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase' not found in wp-content/plugins/symfopress-lite/src/Netandreus/SymfopressBundle/Tests/Controller/DemoControllerTest.php:7
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/symfopress-lite/app/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/symfopress-lite/app/autoload.php on line 9
- > PHP Warning
file_get_contents(wp-content/plugins/symfopress-lite/app/../vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.php): failed to open stream: No such file or directory in wp-content/plugins/symfopress-lite/app/SymfonyRequirements.php on line 534
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Kernel' not found in wp-content/plugins/symfopress-lite/app/AppKernel.php:6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/symfopress-lite.php
- > Network (severe)
wp-admin/symfopress-lite.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is a screen shot of SymfoPress Settings (Settings -> Symfopress). When plugin is activated you can install symfony 2 components (vendors).), #2 (Vendors are installed successfull. Now you can activate dispatching.), #3 (Dispatching activation.), #4 (Now dispatching activated. You can switch to demo page.), #5 (Symfony 2 demo page in your WordPress installation.)
symfopress-lite/symfopress-lite.php Passed 13 tests
Analyzing the main PHP file in "SymfoPress Lite" version 1.0
34 characters long description:
Symfony 2 integration to WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,122 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 231 | 305 | 1,208 |
CSS | 6 | 3 | 10 | 566 |
YAML | 10 | 26 | 39 | 169 |
Twig | 5 | 14 | 0 | 86 |
JSON | 1 | 0 | 0 | 53 |
XML | 2 | 7 | 6 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 4 | 7.27% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 2 | 3.64% |
▷ Private methods | 1 | 1.82% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.57MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
web/apple-touch-icon.png | 10.53KB | 5.12KB | ▼ 51.42% |
web/bundles/framework/images/grey_magnifier.png | 0.38KB | 0.66KB | 0.00% |
screenshot-4.png | 107.86KB | 29.30KB | ▼ 72.83% |
screenshot-1.png | 107.75KB | 30.48KB | ▼ 71.71% |
screenshot-5.png | 103.40KB | 29.09KB | ▼ 71.87% |