Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.30ms] Passed 4 tests
An overview of server-side resources used by MDC Comment Toolbar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 46.75 ▲0.71 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.58 ▼6.07 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.02 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.55 ▼16.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.87 ▲5.64 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MDC Comment Toolbar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.17 ▼0.06 | 1.91 ▲0.07 | 45.04 ▼4.32 |
Dashboard /wp-admin | 2,211 ▲31 | 5.56 ▲0.01 | 89.87 ▼4.83 | 81.46 ▲38.61 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.97 ▼0.06 | 40.19 ▼2.47 | 35.47 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,692 ▲166 | 22.16 ▼0.91 | 776.76 ▲71.06 | 58.61 ▲0.09 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.15 ▼0.05 | 130.92 ▲20.49 | 52.34 ▲10.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-comment-toolbar/mdc-option-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-comment-toolbar/mdc-option-page.php:5
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #3 (Download page with different video formats)
mdc-comment-toolbar/mdc-comment-toolbar.php Passed 13 tests
"MDC Comment Toolbar" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
MDC Comment Toolbar enables rich editor toolbar with media uploader in comment field.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected125 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 9 | 119 |
CSS | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-1.png | 54.20KB | 17.83KB | ▼ 67.10% |
images/screenshot-2.png | 30.16KB | 10.03KB | ▼ 66.75% |
images/icon.png | 3.18KB | 0.72KB | ▼ 77.36% |