Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.10ms] Passed 4 tests
Analyzing server-side resources used by Disable Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.35 ▲0.61 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.92 ▼2.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.84 ▼1.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.70 ▼17.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.99 ▲1.70 |
Disable Comments RB /wp-admin/options-general.php?page=rb_disable_comments_settings | 3.26 | 30.98 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.17 ▼0.44 | 1.67 ▼0.10 | 44.40 ▲3.76 |
Dashboard /wp-admin | 2,208 ▲34 | 5.62 ▲0.02 | 94.25 ▲7.53 | 43.08 ▼1.92 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.11 ▲0.08 | 33.68 ▼4.02 | 34.34 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.40 ▲0.41 | 614.21 ▼17.12 | 60.33 ▲6.83 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.20 ▲0.02 | 97.25 ▼1.51 | 46.42 ▲1.72 |
Disable Comments RB /wp-admin/options-general.php?page=rb_disable_comments_settings | 825 | 2.01 | 24.40 | 29.45 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 97% 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 your attention:
- Screenshots: Please add images for these screenshots: #1 (Disable Comments plugin - options screen of the Disable Comments RB), #2 (Disable Comments notice)
disable-comments-rb/disable-comments-rb.php Passed 13 tests
The principal PHP file in "Disable Comments" v. 1.0.22 is loaded by WordPress automatically on each request
136 characters long description:
Easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin705 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 121 | 49 | 467 |
PO File | 2 | 33 | 40 | 131 |
SVG | 1 | 1 | 1 | 107 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.22 |
▷ 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 | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo_drc.png | 9.48KB | 3.72KB | ▼ 60.73% |
screenshot-1.png | 8.98KB | 5.05KB | ▼ 43.82% |
assets/images/logo_dp.png | 10.42KB | 3.13KB | ▼ 69.94% |
screenshot-2.png | 4.25KB | 2.66KB | ▼ 37.37% |