Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.07ms] Passed 4 tests
An overview of server-side resources used by MIF WP Customizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.16 ▲0.62 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.29 ▼3.45 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.64 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.76 ▼4.85 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.20 ▲6.89 |
WP Customizer /wp-admin/options-general.php?page=mif-wpc | 3.29 | 32.99 |
Server storage [IO: ▲2.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_mif_wpc_user_login_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for MIF WP Customizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.39 ▼0.99 | 1.71 ▼0.02 | 43.40 ▼4.65 |
Dashboard /wp-admin | 2,214 ▲26 | 4.84 ▼0.06 | 114.45 ▲9.00 | 42.53 ▼2.03 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.03 ▲0.04 | 40.27 ▲1.52 | 35.21 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 18.38 ▲0.61 | 642.73 ▼36.22 | 79.24 ▲24.48 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.25 ▲0.03 | 94.53 ▼6.05 | 41.05 ▼2.44 |
WP Customizer /wp-admin/options-general.php?page=mif-wpc | 887 | 2.15 | 30.16 | 30.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_mif_wpc_user_login_widget
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=mif-wpc
- > Network (severe)
https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Plugin configuration page), #2 (Adding menu item "Login/Logout"), #3 (Menu item "Login" (user is not authorized)), #4 (Menu item "Logout" (user is authorized)), #5 (Adding authorization widget), #6 (Authorization widget), #7 ("Up" button), #8 (Site memmbers widget), #9 (Displaying posts for site members in the activity feed of BuddyPress)
- Contributors: Contributors not specified
mif-wp-customizer/mif-wp-customizer.php 92% from 13 tests
The main PHP file in "MIF WP Customizer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin5,730 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 29 | 18 | 2,417 |
PHP | 8 | 284 | 94 | 482 |
PO File | 1 | 46 | 47 | 143 |
JavaScript | 1 | 11 | 6 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.34MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-8.png | 159.53KB | 59.09KB | ▼ 62.96% |
screenshot-5.png | 105.30KB | 55.65KB | ▼ 47.15% |
screenshot-7.png | 41.69KB | 20.34KB | ▼ 51.21% |
screenshot-9.png | 253.70KB | 83.93KB | ▼ 66.92% |
screenshot-6.png | 54.38KB | 24.61KB | ▼ 54.75% |