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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.79ms] Passed 4 tests
A check of server-side resources used by WP Errata
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.89 ▲3.51 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.41 ▼13.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.05 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.70 ▼13.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.94 ▼1.62 |
WP Errata /wp-admin/options-general.php?page=jcwperrata-plugin | 3.19 | 30.97 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 16 new options
New WordPress options |
---|
jcwperrata_linkback |
db_upgraded |
widget_recent-comments |
jcwperrata_active |
jcwperrata_usermessage |
jcwperrata_email |
widget_recent-posts |
jcwperrata_cancelbuttonlabel |
jcwperrata_disableon_mobile |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Errata
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲202 | 14.03 ▼0.35 | 10.10 ▲8.40 | 46.02 ▲6.39 |
Dashboard /wp-admin | 2,210 ▲21 | 4.88 ▼0.09 | 111.10 ▲2.56 | 41.53 ▼2.09 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.02 | 34.29 ▼1.26 | 32.14 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 23.53 ▲0.15 | 670.77 ▼3.49 | 53.39 ▲0.60 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.29 ▲0.06 | 105.62 ▼11.77 | 46.99 ▲0.14 |
WP Errata /wp-admin/options-general.php?page=jcwperrata-plugin | 1,012 | 2.08 | 25.85 | 42.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 16 options in the database
- jcwperrata_disableon_mobile
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- jcwperrata_selectall
- jcwperrata_cancelbuttonlabel
- jcwperrata_active
- jcwperrata_usermessage
- jcwperrata_linkback
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=jcwperrata-plugin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jcwperrata-plugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-errata/wp-errata.php:25
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (A screen shot of the options page), #2 (Shows content being edited)
- Plugin Name: Please specify the plugin name on the first line (
=== wp-errata ===
)
wp-errata/wp-errata.php 92% from 13 tests
Analyzing the main PHP file in "WP Errata" version 1.0
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)
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
Good job! No executable or dangerous file extensions detected702 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 164 | 246 | 626 |
CSS | 1 | 1 | 0 | 75 |
JavaScript | 1 | 5 | 20 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.82 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 6.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
edit.png | 0.64KB | 0.60KB | ▼ 7.29% |
screenshot-1.png | 29.61KB | 14.88KB | ▼ 49.73% |
screenshot-2.png | 5.07KB | 3.24KB | ▼ 36.04% |