Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼37.10ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Info
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.70 ▼5.22 |
Dashboard /wp-admin | 3.00 ▼0.31 | 24.36 ▼34.36 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 25.58 ▼23.13 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 22.74 ▼77.81 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 22.90 ▼13.09 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate Info
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.74 ▲0.43 | 1.88 ▲0.03 | 40.15 ▼9.08 |
Dashboard /wp-admin | 2,222 ▲34 | 4.91 ▲0.03 | 101.99 ▼15.71 | 58.12 ▲9.26 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.03 ▼0.01 | 38.79 ▲1.83 | 32.47 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.15 ▲4.88 | 630.46 ▼1.90 | 52.92 ▼17.12 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.32 ▲0.13 | 100.92 ▼2.50 | 74.02 ▲31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/ultimate-info/inc/wordpress.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function Ultimate_Info\\plugin_dir_path() in wp-content/plugins/ultimate-info/class-ultimate-info.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/ultimate-info/inc/server.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-info/ultimate-info.php:18
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Requires at least: Version format is invalid
ultimate-info/ultimate-info.php 92% from 13 tests
This is the main PHP file of "Ultimate Info" version 2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2...")
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 plugin891 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 80 | 0 | 320 |
PHP | 4 | 8 | 11 | 316 |
CSS | 1 | 5 | 4 | 211 |
JavaScript | 1 | 0 | 0 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resource/misc/icon.png | 4.37KB | 1.47KB | ▼ 66.42% |