Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼134.21ms] Passed 4 tests
This is a short check of server-side resources used by μcaptcha
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 39.17 ▲17.85 |
Dashboard /wp-admin | 3.08 ▲0.02 | 49.53 ▲5.46 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 58.00 ▲5.30 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 94.52 ▼549.09 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.61 ▲1.48 |
μcaptcha /wp-admin/plugins.php?page=mucaptcha_config | 3.01 | 32.74 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for μcaptcha
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,744 ▲108 | 15.59 ▼0.40 | 8.83 ▲0.08 | 47.83 ▼5.30 |
Dashboard /wp-admin | 2,980 ▲46 | 5.88 ▼0.08 | 133.67 ▼4.78 | 117.44 ▼0.32 |
Posts /wp-admin/edit.php | 2,764 ▲25 | 2.67 ▼0.02 | 62.05 ▼2.90 | 98.09 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,507 ▼165 | 18.55 ▼0.41 | 356.71 ▼19.24 | 128.65 ▲15.06 |
Media Library /wp-admin/upload.php | 1,743 ▼67 | 4.99 ▼0.05 | 143.92 ▼13.03 | 124.59 ▼2.33 |
μcaptcha /wp-admin/plugins.php?page=mucaptcha_config | 1,328 | 2.25 | 59.27 | 77.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-mucaptcha/admin/form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-mucaptcha/admin/save.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-mucaptcha/admin/form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mucaptcha/wp-mucaptcha.php:130
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-mucaptcha ===
)
wp-mucaptcha/wp-mucaptcha.php 92% from 13 tests
The entry point to "μcaptcha" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected572 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 41 | 41 | 369 |
PO File | 2 | 56 | 66 | 161 |
JavaScript | 1 | 0 | 13 | 22 |
Bourne Shell | 1 | 7 | 3 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 1 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin