84% storefront-pro-skins

Code Review | Storefront Pro Skins

WordPress plugin Storefront Pro Skins scored84%from 54 tests.

About plugin

  • Plugin page: storefront-pro-skins
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Feb 24, 2017
  • Latest release: Jan 24, 2022
  • Number of updates: 22
  • Update frequency: every 82.2 days
  • Top authors: shramee (95.45%)PootlePress (9.09%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /7,152 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.41ms] Passed 4 tests

An overview of server-side resources used by Storefront Pro Skins
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.27 ▲0.18
Dashboard /wp-admin3.31 ▼0.0448.44 ▼10.32
Posts /wp-admin/edit.php3.36 ▲0.0044.42 ▼15.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.61 ▼5.94
Media Library /wp-admin/upload.php3.23 ▲0.0032.11 ▼2.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Storefront Pro Skins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.041.85 ▲0.2143.80 ▲2.89
Dashboard /wp-admin2,198 ▲335.58 ▼0.0887.56 ▼28.8940.49 ▼31.34
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0032.99 ▼6.5233.44 ▼3.43
Add New Post /wp-admin/post-new.php1,526 ▼223.65 ▲0.56688.17 ▲45.9656.20 ▼9.77
Media Library /wp-admin/upload.php1,397 ▼04.21 ▲0.0699.51 ▼1.2540.97 ▼2.94

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/storefront-pro-skins/inc/tpl-skins-manager.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/storefront-pro-skins/storefront-pro-skins.php:74
    • > PHP Fatal error
      Uncaught Error: Class 'Storefront_Pro_Skins' not found in wp-content/plugins/storefront-pro-skins/inc/tpl-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/storefront-pro-skins/inc/class-customize-control.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

storefront-pro-skins/storefront-pro-skins.php Passed 13 tests

The main PHP script in "Storefront Pro Skins" version 1.0.0 is automatically included on every request by WordPress
87 characters long description:
Save instances of theme customization settings as skins and apply them on demand later.

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
There were no executable files found in this plugin1,374 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54254401
Sass3331355
PHP671105281
CoffeeScript35329260
CSS26151
JSON10026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.75
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods1066.67%
▷ Protected methods00.00%
▷ Private methods533.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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