Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.20ms] Passed 4 tests
An overview of server-side resources used by Minor Improvements
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.27 ▼0.64 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.73 ▼13.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.66 ▲2.31 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.10 ▼8.73 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.93 ▲2.88 |
Minor Improvements /wp-admin/options-general.php?page=mi_options | 3.23 | 31.43 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Minor Improvements
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.21 ▼0.29 | 2.01 ▲0.37 | 45.14 ▲4.46 |
Dashboard /wp-admin | 2,206 ▲28 | 5.63 ▲0.01 | 91.66 ▼4.67 | 42.52 ▲3.01 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▲0.02 | 33.60 ▼1.91 | 33.27 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.12 ▼5.53 | 641.75 ▼26.68 | 67.73 ▲10.71 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.14 ▼0.03 | 94.35 ▼12.71 | 40.83 ▼6.87 |
Minor Improvements /wp-admin/options-general.php?page=mi_options | 853 | 2.16 | 23.09 | 27.20 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/minor-improvements/entity.php+13
Cannot declare class MinorImprovements\Entity, because the name is already in use
- Uninstaller has failed for this plugin, leaving 6 files (0.03MB) in the plugin directory
- (new file) mi.js
- (new file) mi.css
- (new file) uninstall.php
- (new file) readme.txt
- (new file) minor-improvements.php
- (new file) entity.php
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/minor-improvements/uninstall.php
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: youtube, google, recaptcha, protect, xmlrpc...
minor-improvements/minor-improvements.php Passed 13 tests
Analyzing the main PHP file in "Minor Improvements" version 1.8
94 characters long description:
Package of several minor improvements. Why to install several plugins? You need this one only.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected465 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 128 | 175 | 433 |
CSS | 1 | 3 | 0 | 20 |
JavaScript | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 82.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin