Benchmarks
Plugin footprint 65% 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.16MB] [CPU: ▼0.59ms] Passed 4 tests
An overview of server-side resources used by No Spam At All
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 41.07 ▲3.72 |
Dashboard /wp-admin | 3.48 ▲0.13 | 54.09 ▼4.21 |
Posts /wp-admin/edit.php | 3.60 ▲0.23 | 44.69 ▼0.97 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 92.19 ▼0.88 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.62 ▲4.48 |
No Spam Settings /wp-admin/options-general.php?page=nsaa_display_settings_page | 3.37 | 33.46 |
Spam Comment List /wp-admin/options-general.php?page=nsaa_spam_comment_list_page | 3.37 | 32.22 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 37 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_nsaa_xed_comments |
New WordPress options |
---|
nsaa_com_token |
nsaa_schedule_token |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
nsaa_xed_ips_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
No Spam At All: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲237 | 13.63 ▼1.03 | 6.29 ▲4.61 | 33.90 ▼5.00 |
Dashboard /wp-admin | 2,303 ▲129 | 5.98 ▲0.32 | 88.00 ▲2.89 | 44.18 ▲2.99 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.35 ▲0.40 | 40.19 ▲5.03 | 32.56 ▼7.39 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.21 ▼0.51 | 633.81 ▼33.85 | 67.68 ▲15.03 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.51 ▲0.29 | 101.03 ▲4.21 | 43.33 ▲2.27 |
No Spam Settings /wp-admin/options-general.php?page=nsaa_display_settings_page | 922 | 1.88 | 24.77 | 27.15 |
Spam Comment List /wp-admin/options-general.php?page=nsaa_spam_comment_list_page | 865 | 1.85 | 28.50 | 29.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_nsaa_xed_comments
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- widget_recent-comments
- nsaa_schedule_token
- theysaidso_admin_options
- can_compress_scripts
- nsaa_com_token
- nsaa_xed_ips_db_version
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/no-spam-at-all/admin/NSConfiguration.php:157
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/no-spam-at-all/core/NSAction.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-spam-at-all/core/NSScheduler.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-spam-at-all/NSAA_language_maker_Kulasi.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/no-spam-at-all/admin/NSListAllCommentPage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-spam-at-all/core/NSDashboard.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=nsaa_spam_comment_list_page
- > Network (severe)
wp-content/plugins/No-spam-at-all/assets/img/delete.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please describe screenshot #4 in no-spam-at-all/assets to your readme.txt
- Donate link: Please fix this invalid url: "3HPrLAAqc4fYiuKeviD61JKRGhHmpVKixB"
no-spam-at-all/no_spam_at_all.php 85% from 13 tests
The primary PHP file in "No Spam At All" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("no-spam-at-all.php" instead of "no_spam_at_all.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
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
Everything looks great! No dangerous files found in this plugin1,430 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 341 | 25 | 830 |
JavaScript | 3 | 61 | 15 | 291 |
CSS | 2 | 58 | 22 | 225 |
PO File | 1 | 38 | 42 | 84 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 7 | 10.29% |
▷ Public methods | 68 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/delete.png | 9.67KB | 4.48KB | ▼ 53.69% |
assets/img/good.png | 1.20KB | 0.39KB | ▼ 67.16% |
assets/img/settings.png | 5.87KB | 2.66KB | ▼ 54.70% |