Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MarcTVModerateComments::activate() should not be called statically
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.26ms] Passed 4 tests
An overview of server-side resources used by MarcTV Moderate Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.81 ▼1.58 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.62 ▼0.02 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.75 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.54 ▼10.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 40.10 ▲6.79 |
All Comments /wp-admin/edit-comments.php | 3.28 | 42.14 |
Reported0 /wp-admin/edit-comments.php?page=marctv-moderate_reported | 3.26 | 36.03 |
Moderate Comments /wp-admin/options-general.php?page=marctv-moderate | 3.26 | 35.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
marctv-moderation-text |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for MarcTV Moderate Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲166 | 13.75 ▲0.51 | 5.23 ▲0.68 | 40.67 ▼0.44 |
Dashboard /wp-admin | 2,233 ▲42 | 4.86 ▼0.04 | 97.69 ▼9.11 | 38.52 ▼6.25 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.98 ▼0.05 | 38.93 ▼1.15 | 34.10 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,631 ▲117 | 23.59 ▲6.09 | 626.04 ▼30.92 | 52.67 ▼6.92 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.25 ▲0.05 | 96.01 ▼2.77 | 45.19 ▲1.49 |
All Comments /wp-admin/edit-comments.php | 1,816 | 2.26 | 36.24 | 37.01 |
Reported0 /wp-admin/edit-comments.php?page=marctv-moderate_reported | 796 | 2.06 | 26.35 | 27.35 |
Moderate Comments /wp-admin/options-general.php?page=marctv-moderate | 825 | 2.03 | 23.51 | 28.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- marctv-moderation-text
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× 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/marctv-ajax-trash-comments/marctv-moderate.php:507
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/marctv-ajax-trash-comments/pages/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/marctv-ajax-trash-comments/pages/comments-list.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: flag, replace, report, admin, trash...
marctv-ajax-trash-comments/marctv-moderate.php 92% from 13 tests
The entry point to "MarcTV Moderate Comments" version 2.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("marctv-ajax-trash-comments.php" instead of "marctv-moderate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin647 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 81 | 122 | 414 |
PO File | 1 | 34 | 37 | 97 |
JavaScript | 2 | 30 | 6 | 94 |
CSS | 1 | 10 | 0 | 42 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin