84% my-custom-style-css-manager

Code Review | MyCustomStyleCssManager

WordPress plugin MyCustomStyleCssManager scored 84% from 54 tests.

About plugin

  • Plugin page: my-custom-style-c...
  • Plugin version: 0.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Aug 21, 2018
  • Latest release: Dec 12, 2020
  • Number of updates: 38
  • Update frequency: every 22.2 days
  • Top authors: macha795 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.77ms] Passed 4 tests

Analyzing server-side resources used by MyCustomStyleCssManager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.07 ▼0.77
Dashboard /wp-admin3.35 ▲0.0545.06 ▼5.82
Posts /wp-admin/edit.php3.47 ▲0.1148.97 ▼0.62
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.66 ▼7.86
Media Library /wp-admin/upload.php3.28 ▲0.0535.14 ▼0.41
Add New /wp-admin/post-new.php?post_type=mch_mcscm_pt3.3444.17
style.css Manage /wp-admin/options-general.php?page=my-custom-style-css-manager/mch-my-custom-style-css-manager.php3.2832.83
style.css Manage /wp-admin/edit.php?post_type=mch_mcscm_pt3.3236.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MyCustomStyleCssManager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.23 ▼1.151.67 ▼0.0943.63 ▼0.84
Dashboard /wp-admin2,237 ▲495.77 ▼0.0995.63 ▼21.1239.30 ▼12.10
Posts /wp-admin/edit.php2,120 ▲312.02 ▼0.0238.90 ▲1.5034.43 ▲1.31
Add New Post /wp-admin/post-new.php1,560 ▲2623.12 ▼0.04661.54 ▼17.1353.45 ▼20.10
Media Library /wp-admin/upload.php1,416 ▲314.14 ▼0.1695.05 ▼3.8244.58 ▼0.43
Add New /wp-admin/post-new.php?post_type=mch_mcscm_pt1,7633.2562.0946.52
style.css Manage /wp-admin/options-general.php?page=my-custom-style-css-manager/mch-my-custom-style-css-manager.php8302.0625.1825.88
style.css Manage /wp-admin/edit.php?post_type=mch_mcscm_pt1,1251.9429.7229.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/my-custom-style-css-manager/ui/input_form_main_memo.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/my-custom-style-css-manager/ui/input-form-main.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/my-custom-style-css-manager/ui/input_form_side_option.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/my-custom-style-css-manager/ui/setting-form.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: custom, stylecss, css

my-custom-style-css-manager/mch-my-custom-style-css-manager.php 92% from 13 tests

The primary PHP file in "MyCustomStyleCssManager" version 0.0.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-custom-style-css-manager.php" instead of "mch-my-custom-style-css-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected19,598 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript661,9811,40916,123
CSS664282792,384
PHP6232230688
HTML4840403

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3081.08%
▷ Protected methods00.00%
▷ Private methods718.92%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants18
▷ Global constants15.56%
▷ Class constants1794.44%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin