Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.90ms] Passed 4 tests
A check of server-side resources used by Prepare New Version
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.19 ▼2.01 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.87 ▼22.97 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 52.03 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 105.56 ▲0.69 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.36 ▼3.01 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Prepare New Version
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.08 | 1.77 ▲0.06 | 40.42 ▼0.80 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.03 | 88.49 ▼0.52 | 38.91 ▼2.73 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 2.02 ▼0.03 | 39.91 ▲3.65 | 35.09 ▼0.98 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,718 | 25.99 ▲8.37 | 882.49 ▲132.56 | 56.53 ▲4.37 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▼0.08 | 97.35 ▼15.53 | 43.96 ▼3.52 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/prepare-new-version/template/submit_meta_box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/prepare-new-version/include/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/prepare-new-version/include/lang.php:2
- > PHP Fatal error
Uncaught Error: Class 'PNV' not found in wp-content/plugins/prepare-new-version/template/duplicata_meta_box.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/prepare-new-version/include/config.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
prepare-new-version/prepare_new_version.php 85% from 13 tests
The principal PHP file in "Prepare New Version" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5" instead of "3.6.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("prepare-new-version.php" instead of "prepare_new_version.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
Everything looks great! No dangerous files found in this plugin624 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 144 | 204 | 524 |
PO File | 1 | 23 | 25 | 75 |
CSS | 1 | 0 | 0 | 16 |
JavaScript | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 34 | 97.14% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 1 | 2.86% |
▷ Private methods | 1 | 2.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 29 | 100.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
There are no PNG files in this plugin