Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲6.55MB] [CPU: ▲39.42ms] 75% from 4 tests
Analyzing server-side resources used by My WP Customize Admin/Frontend
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 6.55MB on /wp-admin/admin.php?page=mywp_frontend)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.96 ▲6.49 | 79.08 ▲39.09 |
Dashboard /wp-admin | 9.89 ▲6.58 | 91.48 ▲39.63 |
Posts /wp-admin/edit.php | 9.96 ▲6.60 | 106.11 ▲58.88 |
Add New Post /wp-admin/post-new.php | 12.44 ▲6.55 | 128.38 ▲30.55 |
Media Library /wp-admin/upload.php | 9.84 ▲6.60 | 82.36 ▲48.42 |
Website /wp-admin/admin.php?page=mywp_site | 9.84 | 81.73 |
Update /wp-admin/admin.php?page=mywp_update | 9.81 | 81.03 |
Debug /wp-admin/admin.php?page=mywp_debug | 9.81 | 76.83 |
My WP /wp-admin/admin.php?page=mywp | 9.81 | 78.99 |
Admin /wp-admin/admin.php?page=mywp_admin | 9.89 | 85.11 |
Log in /wp-admin/admin.php?page=mywp_login | 9.89 | 89.93 |
Frontend /wp-admin/admin.php?page=mywp_frontend | 9.81 | 78.56 |
Server storage [IO: ▲1.24MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by My WP Customize Admin/Frontend
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲94 | 14.25 ▲0.04 | 1.62 ▼0.24 | 36.33 ▼8.67 |
Dashboard /wp-admin | 2,249 ▲69 | 5.61 ▼0.04 | 107.33 ▲8.85 | 45.26 ▲0.57 |
Posts /wp-admin/edit.php | 2,151 ▲48 | 1.94 ▼0.02 | 40.03 ▼0.86 | 37.29 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 22.10 ▼1.04 | 591.92 ▼13.97 | 48.77 ▼5.51 |
Media Library /wp-admin/upload.php | 1,451 ▲57 | 4.17 ▼0.03 | 98.51 ▲2.08 | 41.24 ▼1.60 |
Website /wp-admin/admin.php?page=mywp_site | 985 | 2.07 | 30.70 | 33.99 |
Update /wp-admin/admin.php?page=mywp_update | 1,313 | 2.27 | 36.25 | 42.22 |
Debug /wp-admin/admin.php?page=mywp_debug | 1,038 | 2.07 | 29.87 | 29.02 |
My WP /wp-admin/admin.php?page=mywp | 1,069 | 2.11 | 27.76 | 46.43 |
Admin /wp-admin/admin.php?page=mywp_admin | 2,012 | 6.65 | 145.96 | 50.88 |
Log in /wp-admin/admin.php?page=mywp_login | 1,831 | 6.49 | 141.03 | 40.37 |
Frontend /wp-admin/admin.php?page=mywp_frontend | 1,326 | 2.05 | 26.94 | 37.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine, but this is not an exhaustive test
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 need to be fixed:
- Tags: You are using too many tags: 21 tag instead of maximum 10
my-wp/mywp.php 92% from 13 tests
The main PHP script in "My WP Customize Admin/Frontend" version 1.22.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-wp.php" instead of "mywp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin26,598 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 17,249 | 213 | 25,142 |
CSS | 9 | 48 | 2 | 1,173 |
JavaScript | 5 | 238 | 1 | 272 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 22.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 142 | |
▷ Abstract classes | 10 | 7.04% |
▷ Concrete classes | 132 | 92.96% |
▷ Final classes | 132 | 100.00% |
Methods | 1,127 | |
▷ Static methods | 1,068 | 94.76% |
▷ Public methods | 903 | 80.12% |
▷ Protected methods | 132 | 11.71% |
▷ Private methods | 92 | 8.16% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/developer-tools.png | 26.25KB | 9.55KB | ▼ 63.64% |
assets/img/add-ons.png | 30.46KB | 11.74KB | ▼ 61.45% |
assets/img/frontend-customize.png | 39.63KB | 14.13KB | ▼ 64.34% |
assets/img/admin-customize.png | 30.31KB | 11.58KB | ▼ 61.78% |