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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼143.04ms] Passed 4 tests
An overview of server-side resources used by Protect Version Controlled Updates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.16 | 38.08 ▲19.50 |
Dashboard /wp-admin | 3.11 ▲0.05 | 43.48 ▲7.31 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.45 ▲2.17 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 85.62 ▼582.32 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.06 ▲0.68 |
PVCU Options /wp-admin/options-general.php?page=pvcu-options | 3.02 | 30.41 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pvcu_return |
Browser metrics Passed 4 tests
An overview of browser requirements for Protect Version Controlled Updates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲89 | 15.86 ▼0.12 | 7.17 ▼1.30 | 45.53 ▼5.28 |
Dashboard /wp-admin | 2,978 ▲47 | 5.89 ▼0.10 | 130.89 ▼18.81 | 112.68 ▼1.00 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.00 | 62.90 ▼7.55 | 89.76 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,501 ▼182 | 19.00 ▲0.26 | 364.55 ▼10.25 | 108.62 ▲6.30 |
Media Library /wp-admin/upload.php | 1,753 ▼54 | 4.99 ▼0.00 | 144.36 ▼6.84 | 113.77 ▼0.47 |
PVCU Options /wp-admin/options-general.php?page=pvcu-options | 1,148 | 2.10 | 56.64 | 82.32 |
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 1 option in the database
- pvcu_return
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/protect-version-controlled-updates/pvcu-options-page.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/protect-version-controlled-updates/pvcu-activation.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/protect-version-controlled-updates/pvcu-modal-output.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/protect-version-controlled-updates/pvcu-activation.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/protect-version-controlled-updates/pvcu-scripts.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: version control, git, prevent updates
protect-version-controlled-updates/pvcu-main.php 77% from 13 tests
"Protect Version Controlled Updates" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("protect-version-controlled-updates.php" instead of "pvcu-main.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
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
No dangerous file extensions were detected2,300 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 1 | 4 | 1,275 |
JSON | 1 | 0 | 0 | 395 |
JavaScript | 3 | 104 | 68 | 342 |
PHP | 7 | 111 | 209 | 288 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 19 | |
▷ Named functions | 19 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin