Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.10ms] Passed 4 tests
A check of server-side resources used by Inpsyde AntiSpam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.50 ▼2.46 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.79 ▼11.33 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.62 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 87.37 ▼1.77 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.47 ▲5.41 |
Antispam /wp-admin/options-general.php?page=inpsyde-antispam-page | 3.25 | 30.19 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Inpsyde AntiSpam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.27 ▼1.09 | 1.71 ▼0.22 | 42.71 ▼5.49 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼0.03 | 102.81 ▼14.18 | 39.53 ▼4.17 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.04 | 40.70 ▲3.11 | 33.75 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.11 ▼0.19 | 592.44 ▼112.59 | 53.89 ▼5.51 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.27 ▲0.07 | 98.99 ▼14.48 | 44.69 ▼4.49 |
Antispam /wp-admin/options-general.php?page=inpsyde-antispam-page | 895 | 2.17 | 23.29 | 27.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=inpsyde-antispam-page
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=inpsyde-antispam-page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Inpsyde\\Antispam\\is_admin() in wp-content/plugins/js-antispam/antispam.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Inpsyde\\Antispam\\is_admin() in wp-content/plugins/js-antispam/antispam.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
js-antispam/inpsyde-antispam.php 85% from 13 tests
The main PHP script in "Inpsyde AntiSpam" version 2.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("js-antispam.php" instead of "inpsyde-antispam.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin435 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 75 | 160 | 316 |
PO File | 1 | 23 | 50 | 66 |
Markdown | 1 | 17 | 0 | 38 |
JavaScript | 4 | 7 | 13 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 12 | 60.00% |
▷ Anonymous functions | 8 | 40.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin