Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.21ms] Passed 4 tests
An overview of server-side resources used by MTCaptcha WordPress Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.22 ▼3.37 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.06 ▼2.47 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 54.19 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.99 ▼11.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.30 ▲0.13 |
MTCaptcha /wp-admin/options-general.php?page=mt_options | 3.26 | 37.43 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by MTCaptcha WordPress Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.24 ▼0.11 | 3.70 ▲1.95 | 39.84 ▼3.60 |
Dashboard /wp-admin | 2,206 ▲32 | 5.63 ▲0.08 | 89.70 ▼3.19 | 38.45 ▼3.04 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.98 ▲0.02 | 40.64 ▲0.59 | 37.51 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.92 ▼0.05 | 610.44 ▼6.11 | 54.04 ▼1.75 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.22 ▲0.04 | 100.37 ▼2.32 | 42.13 ▼4.47 |
MTCaptcha /wp-admin/options-general.php?page=mt_options | 1,315 | 2.16 | 23.50 | 36.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mtcaptcha/mt-captcha.php
- > /wp-content/plugins/mtcaptcha/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Requires at least: Version not formatted correctly
mtcaptcha/mt-captcha.php 85% from 13 tests
The entry point to "MTCaptcha WordPress Plugin" version 2.7.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 242 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("mtcaptcha.php" instead of "mt-captcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin762 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 77 | 22 | 638 |
JavaScript | 2 | 11 | 0 | 96 |
CSS | 2 | 6 | 0 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.63% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/logo.png | 3.79KB | 2.04KB | ▼ 46.09% |
.wordpress-org/icon-256x256.png | 18.71KB | 7.25KB | ▼ 61.27% |
.wordpress-org/icon-128x128.png | 8.88KB | 3.11KB | ▼ 65.01% |