Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼138.14ms] Passed 4 tests
This is a short check of server-side resources used by Version Info
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 32.90 ▲11.08 |
Dashboard /wp-admin | 3.06 ▲0.01 | 51.66 ▲9.04 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 47.42 ▲6.42 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 83.78 ▼568.39 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.39 ▲0.37 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Version Info
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.82 ▼0.28 | 8.33 ▼3.04 | 41.47 ▼6.31 |
Dashboard /wp-admin | 2,967 ▲33 | 5.91 ▼0.09 | 132.72 ▼16.17 | 104.06 ▼14.77 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 64.38 ▼7.79 | 88.60 ▲5.83 |
Add New Post /wp-admin/post-new.php | 1,683 ▲183 | 18.71 ▲0.31 | 395.39 ▲19.44 | 108.44 ▼1.59 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▼0.01 | 147.54 ▼10.70 | 119.29 ▲6.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught TypeError: Argument 1 passed to VersionInfo::__construct() must be an instance of wpdb, null given, called in wp-content/plugins/version-info/version-info.php on line 52 and defined in wp-content/plugins/version-info/version-info.php:27
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: support, admin, server, php, version...
version-info/version-info.php Passed 13 tests
The principal PHP file in "Version Info" v. 1.2.1 is loaded by WordPress automatically on each request
74 characters long description:
Show current WordPress, PHP, Web Server and MySQL versions in admin footer
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin23 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 21 | 23 |
PHP code Passed 2 tests
Analyzing 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.33 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected