Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼298.02ms] Passed 4 tests
A check of server-side resources used by Advanced Invisible Anti-Spam
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 52.37 ▼12.19 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.76 ▼1.04 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.35 ▼5.48 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 91.51 ▼1,173.37 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 28.34 ▲5.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options |
---|
aia_current_key |
aia_previous_field_key |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Invisible Anti-Spam
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.25 ▲0.62 | 5.76 ▼0.35 | 2.11 ▼0.73 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.08 | 116.60 ▼13.28 | 156.60 ▼13.12 |
Posts /wp-admin/edit.php | 2,694 ▲10 | 3.24 ▲0.15 | 63.99 ▲2.77 | 144.62 ▲8.72 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 17.86 ▲2.31 | 400.21 ▼18.57 | 156.66 ▼0.97 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.52 ▲0.00 | 138.68 ▼6.39 | 183.00 ▲0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/advanced-invisible-anti-spam/advanced-invisible-antispam.php:18
- > 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 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Screenshot #2 (( Registration ) The error message shown to bots, or users who do not have javascript enabled. This message is translatable, and filterable.) image not found
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== advanced-invisible-anti-spam ===
)
advanced-invisible-anti-spam/advanced-invisible-antispam.php 92% from 13 tests
The principal PHP file in "Advanced Invisible Anti-Spam" v. 1.4.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-invisible-anti-spam.php" instead of "advanced-invisible-antispam.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin284 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 76 | 45 | 259 |
JavaScript | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 3 | 13.64% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin