83% mmx-make-me-christmas

Code Review | MMX - Make Me Christmas

WordPress plugin MMX - Make Me Christmas scored83%from 54 tests.

About plugin

  • Plugin page: mmx-make-me-chris...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2015
  • Latest release: Dec 2, 2015
  • Number of updates: 62
  • Update frequency: every 0.5 days
  • Top authors: mmetrodw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /5,544 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.41 ▼1.11
Dashboard /wp-admin3.31 ▲0.0150.04 ▼2.84
Posts /wp-admin/edit.php3.36 ▲0.0150.27 ▼0.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.98 ▼14.42
Media Library /wp-admin/upload.php3.23 ▲0.0139.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲34414.10 ▼0.127.84 ▲6.1442.29 ▲2.47
Dashboard /wp-admin2,222 ▲344.83 ▼0.03110.43 ▲3.1545.28 ▲1.14
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0140.85 ▲3.4138.99 ▲4.56
Add New Post /wp-admin/post-new.php1,546 ▲2623.38 ▲0.06649.77 ▼74.7759.25 ▼7.46
Media Library /wp-admin/upload.php1,407 ▲194.19 ▼0.05109.64 ▲2.2250.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
SVG221224,781
CSS2724966
PHP22029290
JavaScript2217198
JSON10024

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 code0.75
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/bunting_04_prev.png30.64KB10.63KB▼ 65.29%
assets/img/bunting_07_prev.png25.61KB9.00KB▼ 64.87%
assets/img/snowflake_07_2.png18.02KB7.33KB▼ 59.30%
assets/img/snow_after_check.png4.02KB0.83KB▼ 79.29%
assets/img/bunting_04.png28.26KB9.61KB▼ 65.99%