Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.71MB] [CPU: ▼0.00ms] 75% from 4 tests
A check of server-side resources used by Events Manager - Events / Locations Slider
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 26,237.82ms on /wp-admin/admin.php?page=stonehenge-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 43.48 ▲4.15 |
Dashboard /wp-admin | 4.02 ▲0.68 | 55.03 ▼5.47 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 53.74 ▲10.03 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 88.72 ▼8.44 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 44.58 ▲9.74 |
More... /wp-admin/admin.php?page=stonehenge-plugins | 3.95 | 26,237.82 |
EM - Events Slider /wp-admin/admin.php?page=stonehenge_em_slider | 3.92 | 42.51 |
Free Support /wp-admin/admin.php?page=stonehenge_forums | 3.89 | 38.51 |
Server storage [IO: ▲3.07MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,127 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Events Manager - Events / Locations Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 14.68 ▲0.40 | 1.57 ▼0.25 | 38.48 ▼5.25 |
Dashboard /wp-admin | 2,227 ▲47 | 5.51 ▼0.09 | 96.51 ▲6.80 | 42.71 ▲4.40 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.01 ▲0.01 | 36.70 ▼0.61 | 31.43 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.06 ▼0.06 | 604.92 ▲6.11 | 72.67 ▲10.30 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.28 ▲0.10 | 97.76 ▼5.86 | 43.31 ▼0.05 |
More... /wp-admin/admin.php?page=stonehenge-plugins | 1,052 | 2.19 | 29.76 | 51.29 |
EM - Events Slider /wp-admin/admin.php?page=stonehenge_em_slider | 837 | 2.18 | 29.48 | 36.82 |
Free Support /wp-admin/admin.php?page=stonehenge_forums | 934 | 2.28 | 31.53 | 54.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/stonehenge-em-slider/uninstall.php+13
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=stonehenge_forums
- > Notice in wp-content/plugins/stonehenge-em-slider/stonehenge/class-forum.php+55
Undefined offset: 1
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/mustache/mustache/bin/build_bootstrap.php
- 290× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Thunder\\Shortcode\\HandlerContainer\\HandlerContainerInterface' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/thunderer/shortcode/src/HandlerContainer/ImmutableHandlerContainer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/css-selector/Node/SelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_InstalledPackage' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/server/Puc/v4p6/Plugin/Package.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Catalogue\\OperationInterface' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/translation/Catalogue/AbstractOperation.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/yaml/Exception/DumpException.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/mustache/mustache/test/Mustache/Test/CompilerTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Config\\Resource\\SelfCheckingResourceInterface' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/config/Resource/ComposerResource.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/mustache/mustache/src/Mustache/Logger/AbstractLogger.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/translation/Loader/JsonFileLoader.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/symfony/css-selector/XPath/Extension/FunctionExtension.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: slider, slide, carousel, events manager, fade
stonehenge-em-slider/stonehenge-em-slider.php Passed 13 tests
The main PHP file in "Events Manager - Events / Locations Slider" ver. 1.8.7 adds more information about the plugin and also serves as the entry point for this plugin
129 characters long description:
Create a dynamic Slider (carousel or fade) for Events and Locations with EM arguments you already know, using a simple shortcode.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/stonehenge-em-slider/stonehenge/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 523 | 8,485 | 15,503 | 42,499 |
YAML | 290 | 975 | 601 | 7,942 |
JavaScript | 82 | 876 | 1,084 | 5,675 |
XSD | 3 | 92 | 48 | 2,803 |
Markdown | 32 | 683 | 0 | 1,831 |
JSON | 19 | 0 | 0 | 1,629 |
CSS | 9 | 59 | 64 | 1,380 |
LESS | 2 | 115 | 7 | 1,080 |
PO File | 14 | 124 | 139 | 565 |
Mustache | 36 | 1 | 0 | 145 |
Perl | 1 | 14 | 8 | 98 |
XML | 4 | 5 | 0 | 97 |
make | 1 | 2 | 0 | 11 |
Dockerfile | 1 | 1 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 309.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 58 | |
Traits | 1 | |
Classes | 457 | |
▷ Abstract classes | 24 | 5.25% |
▷ Concrete classes | 433 | 94.75% |
▷ Final classes | 86 | 19.86% |
Methods | 2,616 | |
▷ Static methods | 219 | 8.37% |
▷ Public methods | 2,066 | 78.98% |
▷ Protected methods | 280 | 10.70% |
▷ Private methods | 270 | 10.32% |
Functions | 230 | |
▷ Named functions | 86 | 37.39% |
▷ Anonymous functions | 144 | 62.61% |
Constants | 137 | |
▷ Global constants | 5 | 3.65% |
▷ Class constants | 132 | 96.35% |
▷ Public constants | 125 | 94.70% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stonehenge/assets/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
stonehenge/assets/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
stonehenge/assets/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
stonehenge/assets/images/ui-icons_004276_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
stonehenge/assets/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |