84% mythemeshop-theme-customizer

Code Review | MyThemeShop Theme Customizer

WordPress plugin MyThemeShop Theme Customizer scored84%from 54 tests.

About plugin

  • Plugin page: mythemeshop-theme...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Jul 31, 2018
  • Latest release: Jan 26, 2022
  • Number of updates: 10
  • Update frequency: every 151.1 days
  • Top authors: MyThemeShop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /7,239 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.27ms] Passed 4 tests

Analyzing server-side resources used by MyThemeShop Theme Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.72 ▼8.00
Dashboard /wp-admin3.31 ▲0.0048.61 ▼3.48
Posts /wp-admin/edit.php3.36 ▲0.0043.10 ▼10.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.87 ▼15.43
Media Library /wp-admin/upload.php3.23 ▲0.0037.71 ▲5.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

MyThemeShop Theme Customizer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼0.864.66 ▲2.7440.31 ▼3.76
Dashboard /wp-admin2,206 ▲245.88 ▲0.0398.43 ▼54.3440.46 ▼8.75
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0134.57 ▼3.1131.38 ▼2.19
Add New Post /wp-admin/post-new.php1,514 ▼2417.40 ▼5.89664.91 ▼44.6856.67 ▲7.56
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.08103.15 ▼4.5944.83 ▲4.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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
The following issues need your attention
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mythemeshop-theme-customizer/mythemeshop-theme-customizer.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mythemeshop-theme-customizer/inc/onepage-lite-functions.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-buttons.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-team.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-services.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-clients.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-tweets.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-featured.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-blog.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mythemeshop-theme-customizer/inc/widgets/widget-features.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

mythemeshop-theme-customizer/mythemeshop-theme-customizer.php 92% from 13 tests

The primary PHP file in "MyThemeShop Theme Customizer" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,393 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP135346592,364
JavaScript24026
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.68
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods123
▷ Static methods108.13%
▷ Public methods11291.06%
▷ Protected methods21.63%
▷ Private methods97.32%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin