84% storefront-pro-sales-pop

Code Review | Storefront Pro Sales Pop

WordPress plugin Storefront Pro Sales Pop scored84%from 54 tests.

About plugin

  • Plugin page: storefront-pro-sa...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.9.0
  • WordPress version: 6.3.1
  • First release: May 25, 2017
  • Latest release: Jan 24, 2022
  • Number of updates: 14
  • Update frequency: every 121.9 days
  • Top authors: shramee (92.86%)PootlePress (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.49ms] Passed 4 tests

Analyzing server-side resources used by Storefront Pro Sales Pop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0443.42 ▼2.22
Dashboard /wp-admin3.39 ▲0.0051.52 ▼17.44
Posts /wp-admin/edit.php3.50 ▲0.1148.57 ▼1.07
Add New Post /wp-admin/post-new.php5.97 ▲0.0486.78 ▼21.22
Media Library /wp-admin/upload.php3.31 ▲0.0438.91 ▲1.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Storefront Pro Sales Pop
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.301.77 ▲0.2944.82 ▲4.41
Dashboard /wp-admin2,198 ▲215.60 ▼0.0888.39 ▼2.5539.31 ▼9.03
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0134.41 ▼1.4735.38 ▲1.46
Add New Post /wp-admin/post-new.php1,538 ▲1222.89 ▼0.07673.25 ▼0.8352.16 ▲0.56
Media Library /wp-admin/upload.php1,403 ▲34.24 ▼0.0695.34 ▼13.5743.28 ▼4.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/storefront-pro-sales-pop/storefront-pro-sales-pop.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Sales pop settings in customizer), #2 (Sales pop vertical), #3 (Sales pop horizontal)
Please take inspiration from this readme.txt

storefront-pro-sales-pop/storefront-pro-sales-pop.php Passed 13 tests

The primary PHP file in "Storefront Pro Sales Pop" version 1.1.0 is used by WordPress to initiate all plugin functionality
92 characters long description:
Shows fully customizable sales pop showing real time purchases, build trust and boost sales!

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
There were no executable files found in this plugin789 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41146302
PHP361127241
Sass2140181
JSON10034
CSS414631

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity13.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods1164.71%
▷ Protected methods00.00%
▷ Private methods635.29%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin