Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼175.09ms] Passed 4 tests
Analyzing server-side resources used by Comment Overload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 44.58 ▲13.75 |
Dashboard /wp-admin | 3.08 ▲0.03 | 56.61 ▲10.59 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 61.99 ▲7.02 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 113.02 ▼714.35 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.42 ▼3.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Comment Overload: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,813 ▲243 | 16.27 ▲0.75 | 13.86 ▲6.93 | 47.78 ▼4.29 |
Dashboard /wp-admin | 2,970 ▲39 | 5.94 ▼0.15 | 146.24 ▼23.10 | 125.75 ▲3.56 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 77.29 ▲5.50 | 110.70 ▲13.54 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.26 ▼0.29 | 460.63 ▲44.59 | 116.81 ▼11.33 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.01 | 168.15 ▲2.24 | 128.44 ▼7.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/comment-overload/comment-overload.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Requires at least: Version not formatted correctly
- Screenshots: Please add descriptions for these screenshots #1, #2 in comment-overload/assets to your readme.txt
comment-overload/comment-overload.php Passed 13 tests
"Comment Overload" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Alert commenters when they start writing too many paragraphs
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
Success! There were no dangerous files found in this plugin108 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 40 | 71 |
JavaScript | 1 | 10 | 2 | 37 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin