Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.82ms] Passed 4 tests
An overview of server-side resources used by MyCurator Content Curation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.02 ▼4.12 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.16 ▼2.09 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.29 ▲4.79 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.21 ▼18.95 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 30.48 ▼2.13 |
Add New Training Post /wp-admin/post-new.php?post_type=target_ai | 3.49 | 52.49 |
Training Posts /wp-admin/edit.php?post_type=target_ai | 3.40 | 45.11 |
Dashboard /wp-admin/admin.php?page=mycurator/MyCurator.php | 3.31 | 43.86 |
Logs /wp-admin/admin.php?page=mycurator/MyCurator.php_Logs | 3.30 | 44.92 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_postsread |
wp_topic |
wp_sl_pages |
wp_ai_logs |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
mct_ai_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MyCurator Content Curation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲85 | 14.21 ▼0.14 | 1.83 ▲0.12 | 43.48 ▼1.71 |
Dashboard /wp-admin | 2,252 ▲72 | 5.63 ▼0.01 | 94.35 ▼3.79 | 40.66 ▼7.83 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 1.97 ▲0.03 | 35.37 ▼0.81 | 31.24 ▼6.15 |
Add New Post /wp-admin/post-new.php | 6,322 ▲4,796 | 26.13 ▲2.71 | 935.37 ▲217.09 | 70.93 ▲14.19 |
Media Library /wp-admin/upload.php | 1,457 ▲54 | 4.28 ▲0.09 | 99.78 ▲1.80 | 42.87 ▲0.47 |
Add New Training Post /wp-admin/post-new.php?post_type=target_ai | 2,448 | 8.07 | 206.37 | 67.48 |
Training Posts /wp-admin/edit.php?post_type=target_ai | 1,743 | 9.54 | 322.31 | 33.28 |
Dashboard /wp-admin/admin.php?page=mycurator/MyCurator.php | 1,234 | 8.45 | 228.08 | 23.60 |
Logs /wp-admin/admin.php?page=mycurator/MyCurator.php_Logs | 1,391 | 9.00 | 242.56 | 29.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_postsread
- wp_sl_pages
- wp_topic
- wp_ai_logs
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- mct_ai_options
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mycurator/MyCurator_sourceit.php
- > /wp-content/plugins/mycurator/MyCurator_getit.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mycurator/MyCurator.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycurator/MyCurator_local_proc.php:8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 53
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycurator/MyCurator_notebk.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 54
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycurator/MyCurator_posttypes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycurator/MyCurator_link_redir.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: ""
mycurator/MyCurator.php 92% from 13 tests
"MyCurator Content Curation" version 3.76's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mycurator.php" instead of "MyCurator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin9,525 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 659 | 1,158 | 8,790 |
JavaScript | 4 | 17 | 81 | 580 |
CSS | 3 | 20 | 14 | 155 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 158 | |
▷ Named functions | 158 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.77MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 251.27KB | 81.29KB | ▼ 67.65% |
thumbs_down.png | 0.74KB | 0.57KB | ▼ 22.43% |
screenshot-1.png | 478.82KB | 131.84KB | ▼ 72.47% |
screenshot-3.png | 51.37KB | 19.77KB | ▼ 61.51% |
thumbs_up.png | 0.74KB | 0.57KB | ▼ 22.41% |