Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼260.17ms] Passed 4 tests
A check of server-side resources used by JC Recaptcha
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 34.83 ▲6.53 |
Dashboard /wp-admin | 3.10 ▲0.04 | 47.91 ▲5.89 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 45.67 ▲6.84 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 89.77 ▼1,047.22 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 32.04 ▼5.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for JC Recaptcha
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲214 | 17.25 ▲1.76 | 13.06 ▲4.21 | 48.62 ▼3.52 |
Dashboard /wp-admin | 2,948 ▲98 | 7.11 ▲1.28 | 136.60 ▼6.02 | 127.85 ▲25.64 |
Posts /wp-admin/edit.php | 2,733 ▲27 | 3.38 ▲0.67 | 67.31 ▲4.11 | 99.25 ▲8.40 |
Add New Post /wp-admin/post-new.php | 1,677 ▼361 | 19.45 ▲0.13 | 383.58 ▲2.75 | 123.92 ▲12.00 |
Media Library /wp-admin/upload.php | 1,739 ▼36 | 5.71 ▲0.69 | 134.17 ▼10.02 | 144.26 ▲38.81 |
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 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jc-recaptcha/jc_recaptcha.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 31 tag instead of maximum 10
jc-recaptcha/jc_recaptcha.php 92% from 13 tests
The main file in "JC Recaptcha" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("jc-recaptcha.php" instead of "jc_recaptcha.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
No dangerous file extensions were detected171 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 9 | 22 | 149 |
JavaScript | 2 | 0 | 0 | 16 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 2.40KB | 1.36KB | ▼ 43.15% |
images/icon.png | 1.24KB | 0.44KB | ▼ 64.40% |