Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.01MB] [CPU: ▼50.33ms] Passed 4 tests
Server-side resources used by Event Stream Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.49 | 10.02 ▼37.71 |
Dashboard /wp-admin | 3.00 ▼0.31 | 13.47 ▼39.99 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 13.52 ▼39.41 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 12.74 ▼84.19 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 17.47 ▼19.84 |
Settings /wp-admin/admin.php?page=esg_admin_settings | 3.01 | 12.73 |
Pro Version /wp-admin/admin.php?page=esg_admin_pro_ver | 3.01 | 16.17 |
Help /wp-admin/admin.php?page=esg_admin_help | 3.01 | 15.69 |
Categories /wp-admin/edit-tags.php?taxonomy=esg_cat | 3.01 | 14.01 |
Tags /wp-admin/edit-tags.php?taxonomy=esg_tag | 3.01 | 14.23 |
Galleries /wp-admin/edit.php?post_type=esg_gallery | 3.01 | 15.41 |
Add New Gallery /wp-admin/post-new.php?post_type=esg_gallery | 3.01 | 12.58 |
Server storage [IO: ▲2.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Event Stream Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,473 ▲712 | 15.90 ▲1.63 | 15.50 ▲13.06 | 43.96 ▼0.61 |
Dashboard /wp-admin | 2,698 ▲521 | 6.87 ▲1.27 | 130.02 ▲29.31 | 108.12 ▲64.05 |
Posts /wp-admin/edit.php | 2,599 ▲499 | 3.57 ▲1.57 | 64.18 ▲24.81 | 93.76 ▲54.33 |
Add New Post /wp-admin/post-new.php | 1,780 ▲253 | 22.09 ▼1.02 | 691.85 ▼39.61 | 36.64 ▼15.75 |
Media Library /wp-admin/upload.php | 1,807 ▲404 | 4.75 ▲0.55 | 95.81 ▼11.92 | 98.73 ▲54.29 |
Settings /wp-admin/admin.php?page=esg_admin_settings | 1,766 | 5.71 | 121.70 | 66.39 |
Pro Version /wp-admin/admin.php?page=esg_admin_pro_ver | 1,441 | 3.65 | 59.27 | 90.52 |
Help /wp-admin/admin.php?page=esg_admin_help | 1,321 | 3.64 | 56.28 | 70.49 |
Categories /wp-admin/edit-tags.php?taxonomy=esg_cat | 1,773 | 3.30 | 61.04 | 92.85 |
Tags /wp-admin/edit-tags.php?taxonomy=esg_tag | 1,748 | 3.31 | 68.54 | 62.42 |
Galleries /wp-admin/edit.php?post_type=esg_gallery | 1,565 | 3.52 | 67.28 | 78.41 |
Add New Gallery /wp-admin/post-new.php?post_type=esg_gallery | 2,236 | 4.49 | 88.91 | 97.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- 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)
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=esg_gallery
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/admin.php?page=esg_admin_help
- > Warning in wp-content/plugins/event-stream-gallery/modules/admin.php+460
file_get_contents(wp-content/plugins/event-stream-gallery/data/shortcodes.txt): failed to open stream: No such file or directory
SRP 50% 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
The following issues need your attention
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'esg_singleton' not found in wp-content/plugins/event-stream-gallery/lib/log.php:3
- > PHP Fatal error
Uncaught Error: Class 'esg_singleton' not found in wp-content/plugins/event-stream-gallery/lib/base.php:8
- > PHP Fatal error
Uncaught Error: Class 'esg_module_asset_loader' not found in wp-content/plugins/event-stream-gallery/modules/asset_loader.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-stream-gallery/lib/user.php:29
- > PHP Fatal error
Uncaught Error: Class 'esg_module_admin' not found in wp-content/plugins/event-stream-gallery/modules/admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'esg_singleton' not found in wp-content/plugins/event-stream-gallery/lib/gallery.php:3
- > PHP Fatal error
Uncaught Error: Class 'esg_cpt' not found in wp-content/plugins/event-stream-gallery/modules/cpt.php:3
- > PHP Fatal error
Uncaught Error: Class 'esg_module_shortcodes' not found in wp-content/plugins/event-stream-gallery/modules/shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Class 'esg_singleton' not found in wp-content/plugins/event-stream-gallery/lib/session.php:8
- > PHP Fatal error
Uncaught Error: Class 'esg_singleton' not found in wp-content/plugins/event-stream-gallery/lib/mailer.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=esg_gallery
- > Network (severe)
wp-content/plugins/event-stream-gallery/share/fonts/fontawesome-webfont.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=esg_gallery
- > Network (severe)
wp-content/plugins/event-stream-gallery/share/fonts/fontawesome-webfont.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=esg_gallery
- > Network (severe)
wp-content/plugins/event-stream-gallery/share/fonts/fontawesome-webfont.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Front-end: Upload image page (renderd using a shortcode))
event-stream-gallery/event-stream-gallery.php 85% from 13 tests
The entry point to "Event Stream Gallery" version 1.0.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin19,293 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 44 | 2,175 | 7,730 |
JavaScript | 25 | 1,643 | 931 | 6,794 |
PHP | 18 | 1,257 | 1,762 | 4,769 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 270 | |
▷ Static methods | 131 | 48.52% |
▷ Public methods | 270 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 47 | |
▷ Global constants | 4 | 8.51% |
▷ Class constants | 43 | 91.49% |
▷ Public constants | 43 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.40MB with 0.62MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 1.01KB | 1.24KB | 0.00% |
screenshot-3.png | 1,261.04KB | 491.16KB | ▼ 61.05% |
screenshot-4.png | 53.53KB | 22.92KB | ▼ 57.18% |
screenshot-1.png | 122.69KB | 51.11KB | ▼ 58.34% |