Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wasp-anti-spam/inc/admin-page-class/admin-page-class.php+277
Undefined index: top
Server metrics [RAM: ▼0.87MB] [CPU: ▼45.14ms] Passed 4 tests
This is a short check of server-side resources used by WASP - Anti Spam
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.77 | 42.74 ▼2.20 |
Dashboard /wp-admin | 3.07 ▼0.23 | 10.92 ▼34.57 |
Posts /wp-admin/edit.php | 3.08 ▼0.28 | 12.21 ▼38.95 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 10.42 ▼86.25 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 14.23 ▼20.80 |
WASP Anti-Spam /wp-admin/admin.php?page=ebk_page | 3.08 | 10.25 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 103 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
ebk_options |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WASP - Anti Spam
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,011 ▲265 | 13.80 ▼0.82 | 5.86 ▲4.05 | 29.19 ▼12.57 |
Dashboard /wp-admin | 2,231 ▲46 | 5.92 ▲0.12 | 106.91 ▲0.97 | 40.31 ▲0.77 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.06 ▲0.07 | 41.13 ▼1.74 | 36.13 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,413 ▼101 | 18.00 ▲0.38 | 626.87 ▼57.39 | 49.06 ▼4.09 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.24 ▲0.01 | 100.41 ▼8.33 | 41.64 ▼6.85 |
WASP Anti-Spam /wp-admin/admin.php?page=ebk_page | 2,513 | 10.77 | 207.88 | 124.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wasp-anti-spam/inc/admin-page-class/admin-page-class.php+277
Undefined index: top
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ebk_page
- > Notice in wp-content/plugins/wasp-anti-spam/inc/admin-page-class/admin-page-class.php+277
Undefined index: top
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 plugins_url() in wp-content/plugins/wasp-anti-spam/init.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wasp-anti-spam/inc/profile.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wasp-anti-spam/inc/admin.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=ebk_page
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: $el.live is not a function" "TypeError: $el.live is not a function\n at HTMLInputElement.\u003Canonymous> (/wp-content/plugins/wasp-anti-spam/inc/admin-page-class/js/Admin_Page_Class.js:231:13)\n at Function.each (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:3129)\n at e.\u003Ccomputed>.each (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:1594)\n at fancyCheckbox (/wp-content/plugins/wasp-anti-spam/inc/admin-page-class/js/Admin_Page_Class.js:226:18)\n at apc_init (/wp-content/plugins/wasp-anti-spam/inc/admin-page-class/js/Admin_Page_Class.js:45:3)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wasp-anti-spam/inc/admin-page-class/js/Admin_Page_Class.js:20:3)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=ebk_page
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught TypeError: $el.live is not a function
Optimizations
Plugin configuration 90% 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:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wasp-anti-spam ===
)
wasp-anti-spam/init.php 85% from 13 tests
The main PHP script in "WASP - Anti Spam" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wasp-anti-spam.php" instead of "init.php")
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
Everything looks great! No dangerous files found in this plugin14,617 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 806 | 896 | 6,902 |
PO File | 14 | 1,046 | 1,192 | 2,996 |
PHP | 10 | 592 | 1,601 | 2,831 |
CSS | 12 | 284 | 249 | 1,888 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 71.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 384.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 171 | 98.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.72% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
29 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin-page-class/images/delete-16.png | 1.74KB | 0.90KB | ▼ 48.23% |
inc/admin-page-class/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
inc/admin-page-class/css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
inc/admin-page-class/css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/admin-page-class/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |