68% mm-dashboard-customizer

Code Review | MM Dashboard Customizer

WordPress plugin MM Dashboard Customizer scored68%from 54 tests.

About plugin

  • Plugin page: mm-dashboard-cust...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 6, 2017
  • Latest release: Jul 27, 2017
  • Number of updates: 9
  • Update frequency: every 2.2 days
  • Top authors: marounmelhem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,335 total downloads

Benchmarks

Plugin footprint 65% 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.94MB] [CPU: ▼24.23ms] Passed 4 tests

This is a short check of server-side resources used by MM Dashboard Customizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.75 ▲7.33
Dashboard /wp-admin3.00 ▼0.3028.46 ▼17.39
Posts /wp-admin/edit.php3.00 ▼0.3541.64 ▼6.54
Add New Post /wp-admin/post-new.php3.00 ▼2.8828.91 ▼70.15
Media Library /wp-admin/upload.php3.00 ▼0.2330.24 ▼2.85
General Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=general3.0029.55
Reset All Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=reset3.0031.96
Login Page (wp-login.php) Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=login3.0028.63
Header Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=header3.0031.51
MM Dashboard Customizer /wp-admin/admin.php?page=mm-dashboard-customizer3.0029.47
Widgets Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=widgets3.0026.72
Footer Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=footer3.0029.58

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by MM Dashboard Customizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲26515.02 ▲0.621.76 ▼0.0744.33 ▼5.74
Dashboard /wp-admin2,406 ▲2186.59 ▲0.68123.06 ▲14.9839.06 ▼5.84
Posts /wp-admin/edit.php2,319 ▲2303.47 ▲1.4855.95 ▲15.4832.41 ▼1.89
Add New Post /wp-admin/post-new.php1,566 ▲3823.14 ▲5.11678.63 ▲68.8937.43 ▼18.00
Media Library /wp-admin/upload.php1,454 ▲664.35 ▲0.1184.12 ▼20.4941.07 ▼2.82
General Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=general1,1073.3242.8830.60
Reset All Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=reset1,1113.2140.2368.40
Login Page (wp-login.php) Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=login1,4053.5051.9258.07
Header Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=header1,1373.3745.6035.95
MM Dashboard Customizer /wp-admin/admin.php?page=mm-dashboard-customizer1,4053.6649.2642.88
Widgets Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=widgets1,1763.3843.1130.26
Footer Options /wp-admin/admin.php?page=mm-dashboard-customizer&tab=footer1,1273.3842.6834.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 108 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mm-dashboard-customizer&tab=footer
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=mm-dashboard-customizer&tab=reset
    • > Network (severe)
    var/www/wordpress/wp-content/plugins/mm-dashboard-customizer/includes/src/images/loader.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can look at the official readme.txt

mm-dashboard-customizer/mm-dashboard-customizer.php 92% from 13 tests

The main file in "MM Dashboard Customizer" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,216 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33342101,911
PHP5202218775
CSS35836530

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions58
▷ Named functions58100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin