78% my-style-anytime

Code Review | My Style Anytime

WordPress plugin My Style Anytime scored78%from 54 tests.

About plugin

  • Plugin page: my-style-anytime
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: Sep 29, 2023
  • Number of updates: 41
  • Update frequency: every 9.1 days
  • Top authors: newfiesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼4.94ms] Passed 4 tests

An overview of server-side resources used by My Style Anytime
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1834.08 ▼8.13
Dashboard /wp-admin3.49 ▲0.1950.23 ▲0.91
Posts /wp-admin/edit.php3.60 ▲0.2552.18 ▲0.43
Add New Post /wp-admin/post-new.php6.07 ▲0.1989.88 ▼12.98
Media Library /wp-admin/upload.php3.42 ▲0.1938.97 ▲7.64
Settings /wp-admin/admin.php?page=mysat_settings_page3.3830.57
General /wp-admin/admin.php?page=my-style-anytime3.3833.20
Help /wp-admin/admin.php?page=mysat_help_page3.3829.76
Security /wp-admin/admin.php?page=mysat_security_page3.3835.22
Manage Style /wp-admin/plugin-editor.php?file=my-style-anytime%2Fstyles%2Fadministrator-style.css&plugin=my-style-anytime%2Fmy-style-anytime.php3.2223.16
Customization /wp-admin/admin.php?page=mysat_custom_page3.3831.82

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (4.22KB) outside of "wp-content/plugins/my-style-anytime/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

My Style Anytime: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲7813.24 ▼1.011.57 ▼0.5838.41 ▼6.13
Dashboard /wp-admin2,253 ▲654.86 ▼1.01114.02 ▼3.3443.64 ▼4.12
Posts /wp-admin/edit.php2,133 ▲442.05 ▲0.0537.56 ▼4.1635.01 ▼0.37
Add New Post /wp-admin/post-new.php1,546 ▲2723.22 ▼0.04679.70 ▼26.3761.13 ▲5.03
Media Library /wp-admin/upload.php1,430 ▲454.22 ▲0.01105.64 ▲5.3041.53 ▲0.18
Settings /wp-admin/admin.php?page=mysat_settings_page8532.0227.3230.84
General /wp-admin/admin.php?page=my-style-anytime8612.0228.8044.87
Help /wp-admin/admin.php?page=mysat_help_page1,0652.0223.6046.94
Security /wp-admin/admin.php?page=mysat_security_page8272.0727.7129.00
Manage Style /wp-admin/plugin-editor.php?file=my-style-anytime%2Fstyles%2Fadministrator-style.css&plugin=my-style-anytime%2Fmy-style-anytime.php280.440.073.71
Customization /wp-admin/admin.php?page=mysat_custom_page8452.0223.6425.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-purpl.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-custom.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-help.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-surpl.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-security.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-style-anytime/includes/mysat-general.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/plugin-editor.php?file=my-style-anytime%2Fstyles%2Fadministrator-style.css&plugin=my-style-anytime%2Fmy-style-anytime.php
    • > Network (severe)
    wp-admin/plugin-editor.php?file=my-style-anytime%2Fstyles%2Fadministrator-style.css&plugin=my-style-anytime%2Fmy-style-anytime.php - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt is a good inspiration

my-style-anytime/my-style-anytime.php 92% from 13 tests

The entry point to "My Style Anytime" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 437 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
Success! There were no dangerous files found in this plugin1,891 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS131,6156271,138
PHP8361119753

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions49
▷ Named functions4795.92%
▷ Anonymous functions24.08%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Plesk-file-manager.png79.97KB24.51KB▼ 69.35%
assets/img/cPanel-file-manager.png16.07KB5.41KB▼ 66.36%
assets/img/Note_pad_pp_logo.png33.25KB13.25KB▼ 60.15%