Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼2.79ms] Passed 4 tests
A check of server-side resources used by SPAM Protection and Anti SPAM
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 43.61 ▲1.93 |
Dashboard /wp-admin | 3.85 ▲0.54 | 49.22 ▼0.67 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 47.46 ▼4.98 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 87.33 ▼7.42 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 41.36 ▲4.74 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SPAM Protection and Anti SPAM
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.31 ▼1.04 | 1.97 ▼0.11 | 43.96 ▼2.79 |
Dashboard /wp-admin | 2,213 ▲33 | 5.10 ▼0.49 | 83.74 ▼15.19 | 79.81 ▲36.61 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.32 ▲0.35 | 32.76 ▼5.22 | 32.72 ▲1.96 |
Add New Post /wp-admin/post-new.php | 1,708 ▲182 | 22.67 ▼0.35 | 651.48 ▼29.92 | 30.42 ▼26.43 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.58 ▲0.38 | 94.48 ▼0.30 | 77.05 ▲31.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miniorange-spam-protection/spam_widget.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/miniorange-spam-protection/upgrade.php:12
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2 in miniorange-spam-protection/assets to your readme.txt
miniorange-spam-protection/spam_widget.php 92% from 13 tests
The entry point to "SPAM Protection and Anti SPAM" version 2.5.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 ("miniorange-spam-protection.php" instead of "spam_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,453 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 438 | 163 | 2,632 |
CSS | 5 | 142 | 9 | 1,625 |
JavaScript | 3 | 12 | 15 | 196 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 20.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 8 | 11.43% |
▷ Public methods | 70 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 1 | 5.88% |
▷ Class constants | 16 | 94.12% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/error.png | 1.04KB | 1.13KB | 0.00% |
(invalid) includes/images/bank-transfer.png | 42.97KB | 0.00KB | ▼ 100.00% |
includes/images/card.png | 59.80KB | 58.49KB | ▼ 2.19% |
includes/images/paypal.png | 7.45KB | 7.20KB | ▼ 3.36% |
includes/images/success.png | 15.72KB | 1.48KB | ▼ 90.60% |