Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.93MB] [CPU: ▲3.66ms] 75% from 4 tests
An overview of server-side resources used by Events Manager - Ongoing Events
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 7,406.48ms on /wp-admin/admin.php?page=stonehenge-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.93 | 47.60 ▲6.44 |
Dashboard /wp-admin | 4.23 ▲0.92 | 56.26 ▲7.04 |
Posts /wp-admin/edit.php | 4.34 ▲0.98 | 54.33 ▲4.62 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 93.59 ▼3.46 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 48.92 ▲13.99 |
EM - Ongoing Events /wp-admin/admin.php?page=stonehenge-em-ongoing-events | 4.12 | 39.79 |
Free Support /wp-admin/admin.php?page=stonehenge_forums | 4.09 | 40.30 |
More... /wp-admin/admin.php?page=stonehenge-plugins | 4.15 | 7,406.48 |
Server storage [IO: ▲3.04MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,128 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Events Manager - Ongoing Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.23 ▼1.42 | 1.65 ▲0.06 | 39.38 ▼3.41 |
Dashboard /wp-admin | 2,232 ▲41 | 5.83 ▲0.94 | 96.76 ▼4.04 | 39.55 ▼5.07 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.03 ▼0.02 | 34.88 ▼6.65 | 34.39 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,566 ▲47 | 18.62 ▼4.50 | 582.84 ▼69.85 | 55.82 ▲0.04 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.24 ▲0.07 | 96.14 ▼4.21 | 42.85 ▼2.81 |
EM - Ongoing Events /wp-admin/admin.php?page=stonehenge-em-ongoing-events | 828 | 2.23 | 25.15 | 49.90 |
Free Support /wp-admin/admin.php?page=stonehenge_forums | 926 | 2.37 | 27.58 | 44.61 |
More... /wp-admin/admin.php?page=stonehenge-plugins | 1,040 | 2.22 | 25.08 | 44.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/stonehenge-em-ongoing-events/uninstall.php+12
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=stonehenge_forums
- > Notice in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/class-forum.php+55
Undefined offset: 1
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/mustache/mustache/bin/build_bootstrap.php
- > /wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/symfony/translation/Resources/bin/translation-status.php
- 290× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Logger_AbstractLogger' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/mustache/mustache/src/Mustache/Logger/StreamLogger.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/symfony/translation/Extractor/PhpExtractor.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Thunder\\Shortcode\\Processor\\ProcessorInterface' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/thunderer/shortcode/src/Processor/Processor.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/symfony/css-selector/Node/SelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/symfony/translation/Exception/InvalidResourceException.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/mustache/mustache/test/Mustache/Test/Exception/SyntaxExceptionTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/mustache/mustache/src/Mustache/Cache/NoopCache.php:18
- > PHP Fatal error
Uncaught Error: Class 'Puc_v4p6_DebugBar_Panel' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/server/Puc/v4p6/DebugBar/ThemePanel.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Thunder\\Shortcode\\Shortcode\\ShortcodeInterface' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/thunderer/shortcode/src/Shortcode/ParsedShortcodeInterface.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/mustache/mustache/test/Mustache/Test/Functional/ObjectSectionTest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: chained, classes, courses, events manager, multi day
stonehenge-em-ongoing-events/stonehenge-em-ongoing-events.php Passed 13 tests
Analyzing the main PHP file in "Events Manager - Ongoing Events" version 1.6.2
105 characters long description:
Link single events together with one booking form. Perfect for courses, classes, multi-day seminars, etc.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/stonehenge-em-ongoing-events/stonehenge/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/stonehenge-em-ongoing-events/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 | 528 | 8,629 | 15,600 | 43,097 |
YAML | 290 | 975 | 601 | 7,942 |
JavaScript | 80 | 788 | 472 | 4,547 |
XSD | 3 | 92 | 48 | 2,803 |
Markdown | 31 | 678 | 0 | 1,824 |
JSON | 19 | 0 | 0 | 1,629 |
LESS | 3 | 152 | 7 | 1,287 |
CSS | 8 | 59 | 50 | 1,215 |
PO File | 14 | 165 | 169 | 769 |
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
An overview of cyclomatic complexity and code structure
Please tend to the following items
- 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.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 309.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 58 | |
Traits | 1 | |
Classes | 462 | |
▷ Abstract classes | 24 | 5.19% |
▷ Concrete classes | 438 | 94.81% |
▷ Final classes | 86 | 19.63% |
Methods | 2,640 | |
▷ Static methods | 220 | 8.33% |
▷ Public methods | 2,090 | 79.17% |
▷ Protected methods | 280 | 10.61% |
▷ Private methods | 270 | 10.23% |
Functions | 231 | |
▷ Named functions | 87 | 37.66% |
▷ Anonymous functions | 144 | 62.34% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
14 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-bg_highlight-hard_100_f6f6f6_1x100.png | 0.25KB | 0.11KB | ▼ 53.39% |
stonehenge/assets/images/ui-bg_glass_55_fbf8ee_1x400.png | 0.33KB | 0.13KB | ▼ 60.29% |
stonehenge/assets/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
stonehenge/assets/images/ui-bg_highlight-hard_100_eeeeee_1x100.png | 0.25KB | 0.14KB | ▼ 43.65% |
stonehenge/assets/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |