Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.83ms] Passed 4 tests
Server-side resources used by MMX - Make Me Christmas
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.41 ▼1.11 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.04 ▼2.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.27 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.98 ▼14.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.28 ▲1.13 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mmx_settings |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MMX - Make Me Christmas
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,090 ▲344 | 14.10 ▼0.12 | 7.84 ▲6.14 | 42.29 ▲2.47 |
Dashboard /wp-admin | 2,222 ▲34 | 4.83 ▼0.03 | 110.43 ▲3.15 | 45.28 ▲1.14 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.99 ▼0.01 | 40.85 ▲3.41 | 38.99 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,546 ▲26 | 23.38 ▲0.06 | 649.77 ▼74.77 | 59.25 ▼7.46 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.19 ▼0.05 | 109.64 ▲2.22 | 50.57 ▲5.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mmx-make-me-christmas/mmx.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
mmx-make-me-christmas/mmx.php 85% from 13 tests
The main PHP file in "MMX - Make Me Christmas" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("mmx-make-me-christmas.php" instead of "mmx.php")
- Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)
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 plugin6,259 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 22 | 1 | 22 | 4,781 |
CSS | 2 | 72 | 4 | 966 |
PHP | 2 | 20 | 29 | 290 |
JavaScript | 2 | 21 | 7 | 198 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
54 PNG files occupy 1.00MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bunting_04_prev.png | 30.64KB | 10.63KB | ▼ 65.29% |
assets/img/bunting_07_prev.png | 25.61KB | 9.00KB | ▼ 64.87% |
assets/img/snowflake_07_2.png | 18.02KB | 7.33KB | ▼ 59.30% |
assets/img/snow_after_check.png | 4.02KB | 0.83KB | ▼ 79.29% |
assets/img/bunting_04.png | 28.26KB | 9.61KB | ▼ 65.99% |