Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.29ms] Passed 4 tests
A check of server-side resources used by Mailster Cool Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.07 | 24.60 ▲2.25 |
Dashboard /wp-admin | 3.14 ▲0.07 | 31.54 ▼4.54 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 29.85 ▼0.63 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 67.76 ▼570.25 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 27.01 ▲4.39 |
Server storage [IO: ▲4.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Mailster Cool Captcha
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,701 ▲50 | 15.64 ▲0.01 | 5.48 ▼0.25 | 76.05 ▼0.37 |
Dashboard /wp-admin | 2,930 ▲34 | 6.16 ▲0.02 | 115.75 ▼17.26 | 166.37 ▼6.04 |
Posts /wp-admin/edit.php | 2,706 ▼31 | 3.24 ▼0.11 | 65.40 ▼0.17 | 129.26 ▼5.62 |
Add New Post /wp-admin/post-new.php | 3,735 ▲31 | 18.12 ▼0.84 | 445.95 ▼3.07 | 159.31 ▼7.55 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.57 ▲0.00 | 145.63 ▲0.06 | 184.48 ▲1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mailster-cool-captcha/captcha/tools/dictionary-import/importwords.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mailster-cool-captcha/captcha/tools/dictionary-import/importwords.php on line 22
- > PHP Notice
Undefined variable: argv in wp-content/plugins/mailster-cool-captcha/captcha/tools/dictionary-import/importwords.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-cool-captcha/classes/cool-captcha.class.php:10
- > PHP Notice
Undefined variable: argc in wp-content/plugins/mailster-cool-captcha/captcha/tools/dictionary-import/importwords.php on line 21
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: form, secure, forms, recaptcha, captcha...
mailster-cool-captcha/mailster-cool-captcha.php 92% from 13 tests
The main PHP file in "Mailster Cool Captcha" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin617 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 250 | 93,804 | 617 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 60.87% |
▷ Protected methods | 9 | 39.13% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin