Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/posts-to-events/widget.php+287
Function create_function() is deprecated
Server metrics [RAM: ▼2.07MB] [CPU: ▼59.17ms] Passed 4 tests
Analyzing server-side resources used by Posts To Events
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.55 | 5.31 ▼38.38 |
Dashboard /wp-admin | 2.22 ▼1.35 | 5.54 ▼55.16 |
Posts /wp-admin/edit.php | 2.22 ▼1.46 | 5.58 ▼48.18 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.93 | 6.55 ▼94.95 |
Media Library /wp-admin/upload.php | 2.22 ▼1.27 | 6.99 ▼29.05 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_post_events_widget |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Posts To Events
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 13.48 ▼0.80 | 1.64 ▼0.24 | 46.30 ▲7.14 |
Dashboard /wp-admin | 2,225 ▲45 | 5.91 ▲0.29 | 96.47 ▲8.35 | 43.71 ▼0.52 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.36 ▲0.34 | 39.97 ▼1.46 | 32.37 ▼3.47 |
Add New Post /wp-admin/post-new.php | 6,274 ▲4,734 | 26.18 ▲2.92 | 951.43 ▲284.62 | 39.50 ▼14.26 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.56 ▲0.32 | 102.62 ▲0.92 | 48.13 ▲2.75 |
Uninstaller [IO: ▲0.38MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attentionZombie WordPress options detected upon uninstall: 8 options
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/posts-to-events/widget.php+287
Function create_function() is deprecated
- Incomplete uninstall procedure, leaving 52 files (0.38MB) in the plugin directory
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/animated-overlay.gif
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-icons_0a82eb_256x240.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_flat_0_e69700_40x100.png
- (new file) 1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png
- ...
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_post_events_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/posts-to-events/uninstall.php
- > /wp-content/plugins/posts-to-events/1.56/uninstall.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posts-to-events/1.56/posts_to_events.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-to-events/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/posts-to-events/1.56/pte_admin.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-to-events/1.56/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posts-to-events/posts_to_events.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/posts-to-events/pte_admin.php:7
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
posts-to-events/posts_to_events.php 92% from 13 tests
The primary PHP file in "Posts To Events" version 1.56 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("posts-to-events.php" instead of "posts_to_events.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,447 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 160 | 232 | 1,337 |
CSS | 3 | 40 | 52 | 1,110 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 134.50 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 7.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 6 | 7.69% |
▷ Public methods | 18 | 23.08% |
▷ Protected methods | 60 | 76.92% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 92 | |
▷ Global constants | 92 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_flat_0_e69700_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png | 0.40KB | 0.15KB | ▼ 62.10% |
inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png | 0.41KB | 0.15KB | ▼ 62.35% |
1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
1.56/inc/jquery-ui-1.10.2/css/excite-bike/images/ui-icons_5fa5e3_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |