Benchmarks
Plugin footprint 83% from 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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.17ms] Passed 4 tests
This is a short check of server-side resources used by PS PHPCaptcha WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.49 ▼3.28 |
Dashboard /wp-admin | 3.39 ▲0.09 | 52.08 ▼2.46 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.38 ▲8.56 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.27 ▼15.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.82 ▲0.73 |
PSPHPCaptchaWP /wp-admin/options-general.php?page=psphpcaptchawp | 3.38 | 38.75 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by PS PHPCaptcha WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,036 ▲275 | 15.04 ▲0.77 | 4.71 ▲2.59 | 40.15 ▼9.51 |
Dashboard /wp-admin | 2,362 ▲198 | 6.37 ▲0.79 | 121.05 ▲19.69 | 40.80 ▼1.88 |
Posts /wp-admin/edit.php | 2,293 ▲196 | 3.62 ▲1.54 | 59.18 ▲21.67 | 34.29 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.28 ▼0.01 | 652.87 ▼32.17 | 38.64 ▼15.22 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.38 ▲0.20 | 86.14 ▼11.92 | 47.21 ▲1.76 |
PSPHPCaptchaWP /wp-admin/options-general.php?page=psphpcaptchawp | 1,557 | 3.60 | 62.71 | 61.25 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ps-phpcaptcha/public/renderimage.php
- > /wp-content/plugins/ps-phpcaptcha/public/partials/psphpcaptchawp-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ps-phpcaptcha/admin/partials/psphpcaptchawp-admin-display.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=psphpcaptchawp
- > Network (severe)
wp-content/plugins/ps-phpcaptcha/admin/wp-color-picker-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: captcha, spam, recaptcha-replacement, comments
ps-phpcaptcha/psphpcaptchawp.php 85% from 13 tests
The principal PHP file in "PS PHPCaptcha WP" v. 1.2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ps-phpcaptcha.php" instead of "psphpcaptchawp.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,123 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 337 | 639 | 790 |
PO File | 3 | 126 | 210 | 322 |
JavaScript | 2 | 9 | 56 | 11 |
CSS | 2 | 0 | 8 | 0 |
SQL | 1 | 1 | 2 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 9.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 7 | 15.56% |
▷ Public methods | 36 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.18MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 96.93KB | 42.12KB | ▼ 56.54% |
assets/screenshot-1.png | 0.84KB | 0.84KB | ▼ 0.70% |
assets/icon-128x128.png | 31.30KB | 13.68KB | ▼ 56.30% |
assets/screenshot-3.png | 2.27KB | 1.43KB | ▼ 36.84% |
assets/screenshot-4.png | 49.69KB | 24.18KB | ▼ 51.35% |