90% million-shades-toolkit

Code Review | Million Shades Toolkit

WordPress plugin Million Shades Toolkit scored90%from 54 tests.

About plugin

  • Plugin page: million-shades-to...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: May 19, 2022
  • Number of updates: 23
  • Update frequency: every 50.3 days
  • Top authors: khuda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼13.79ms] Passed 4 tests

An overview of server-side resources used by Million Shades Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2640.95 ▼3.85
Dashboard /wp-admin3.56 ▲0.2147.54 ▼18.44
Posts /wp-admin/edit.php3.67 ▲0.3250.85 ▼4.20
Add New Post /wp-admin/post-new.php6.14 ▲0.2589.58 ▼28.68
Media Library /wp-admin/upload.php3.48 ▲0.2537.45 ▼1.63
Add New /wp-admin/post-new.php?post_type=portfolios3.6355.83
Add New /wp-admin/post-new.php?post_type=staffs3.6264.50
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolios3.4841.24
Add New /wp-admin/post-new.php?post_type=testimonials3.6355.92
Staff Categories /wp-admin/edit-tags.php?taxonomy=staff-category&post_type=staffs3.4840.51
Clients /wp-admin/edit.php?post_type=clients3.5239.68
Staffs /wp-admin/edit.php?post_type=staffs3.5238.03
Client Categories /wp-admin/edit-tags.php?taxonomy=client-category&post_type=clients3.4835.27
Testimonials /wp-admin/edit.php?post_type=testimonials3.5239.36
Add New /wp-admin/post-new.php?post_type=clients3.6355.53

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Million Shades Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17114.36 ▲0.081.52 ▼0.4237.76 ▼4.31
Dashboard /wp-admin2,317 ▲1365.67 ▲0.00101.19 ▼1.5245.86 ▲1.07
Posts /wp-admin/edit.php2,234 ▲1312.04 ▲0.0540.86 ▲3.4840.36 ▲6.55
Add New Post /wp-admin/post-new.php1,646 ▲12018.49 ▼5.07624.90 ▼60.3867.77 ▲3.41
Media Library /wp-admin/upload.php1,534 ▲1344.20 ▲0.03102.40 ▼18.9146.24 ▼2.38
Add New /wp-admin/post-new.php?post_type=portfolios2,7697.66196.0376.26
Add New /wp-admin/post-new.php?post_type=staffs3,4797.76177.6463.76
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolios1,4022.2829.5934.13
Add New /wp-admin/post-new.php?post_type=testimonials2,7867.75191.0176.26
Staff Categories /wp-admin/edit-tags.php?taxonomy=staff-category&post_type=staffs1,4052.2930.1932.74
Clients /wp-admin/edit.php?post_type=clients1,2281.9937.9332.50
Staffs /wp-admin/edit.php?post_type=staffs1,2461.9233.8630.93
Client Categories /wp-admin/edit-tags.php?taxonomy=client-category&post_type=clients1,4022.2828.7032.04
Testimonials /wp-admin/edit.php?post_type=testimonials1,2491.9334.6429.52
Add New /wp-admin/post-new.php?post_type=clients2,7797.71168.7866.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: million shades, toolkit, custom post types

million-shades-toolkit/ms-toolkit.php 92% from 13 tests

The primary PHP file in "Million Shades Toolkit" version 1.0.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("million-shades-toolkit.php" instead of "ms-toolkit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin633 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP619080633

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.80
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin