90% storeone-extension

Code Review | StoreOne Extension

WordPress plugin StoreOne Extension scored90%from 54 tests.

About plugin

  • Plugin page: storeone-extension
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Dec 18, 2020
  • Number of updates: 18
  • Update frequency: every 75.8 days
  • Top authors: ThemeFarmer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /69,862 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
Installer ran successfully

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

Analyzing server-side resources used by StoreOne Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.99 ▼1.21
Dashboard /wp-admin3.31 ▲0.0148.17 ▼1.07
Posts /wp-admin/edit.php3.36 ▲0.0146.09 ▼6.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.04 ▼7.67
Media Library /wp-admin/upload.php3.24 ▲0.0142.85 ▲5.91

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by StoreOne Extension
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.14 ▼0.101.99 ▲0.4544.97 ▲2.92
Dashboard /wp-admin2,225 ▲455.66 ▲0.0086.96 ▼2.7343.09 ▲2.82
Posts /wp-admin/edit.php2,131 ▲342.02 ▲0.0638.27 ▲1.6935.97 ▼0.98
Add New Post /wp-admin/post-new.php1,546 ▲2023.72 ▲0.76680.63 ▲30.5655.58 ▲3.22
Media Library /wp-admin/upload.php1,427 ▲274.20 ▲0.02114.13 ▲17.1648.61 ▲2.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: storeone, storeone extension, testimonial, slider

storeone-extension/storeone-extension.php Passed 13 tests

The main file in "StoreOne Extension" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
107 characters long description:
Advance Extension For StoreOne Theme. enjoy full functionality of StoreOne theme by installing this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin594 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27331572
JavaScript11122

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected