Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼3.37ms] Passed 4 tests
A check of server-side resources used by Throws SPAM Away
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 43.16 ▲1.48 |
Dashboard /wp-admin | 3.61 ▲0.31 | 48.45 ▼0.83 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 52.24 ▲1.47 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 85.67 ▼15.60 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 36.74 ▲4.90 |
Throws SPAM Away /wp-admin/admin.php?page=throws-spam-away | 3.51 | 42.11 |
スパムコメント一括削除 /wp-admin/admin.php?page=throws-spam-away/throws_spam_away_comments.php | 3.54 | 34.43 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Throws SPAM Away
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.29 ▼1.02 | 1.77 ▼0.00 | 43.25 ▲3.68 |
Dashboard /wp-admin | 2,233 ▲59 | 4.90 ▼0.20 | 105.15 ▼4.46 | 45.34 ▲1.92 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.01 ▼0.01 | 40.87 ▼0.95 | 44.06 ▲9.47 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 23.30 ▲0.10 | 665.35 ▲40.91 | 46.94 ▼5.08 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.21 ▲0.02 | 101.90 ▲7.71 | 47.04 ▲5.11 |
Throws SPAM Away /wp-admin/admin.php?page=throws-spam-away | 1,548 | 1.69 | 25.99 | 153.42 |
スパムコメント一括削除 /wp-admin/admin.php?page=throws-spam-away/throws_spam_away_comments.php | 809 | 2.06 | 27.75 | 42.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- 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 smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/throws-spam-away/hostbyip.php:17
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/throws-spam-away/throws_spam_away_comments.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/throws-spam-away/hostbyip.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== throws-spam-away ===
)
throws-spam-away/throws_spam_away.php 85% from 13 tests
The primary PHP file in "Throws SPAM Away" version 3.5.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("throws-spam-away.php" instead of "throws_spam_away.php")
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,530 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 219 | 410 | 1,948 |
PO File | 1 | 104 | 110 | 284 |
CSS | 3 | 43 | 13 | 255 |
JavaScript | 3 | 9 | 14 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 185.00 |
▷ Minimum class complexity | 185.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 8.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG files were detected