84% wce-close-shopp-store

Code Review | WCE CLOSE SHOPP STORE

WordPress plugin WCE CLOSE SHOPP STORE scored84%from 54 tests.

About plugin

  • Plugin page: wce-close-shopp-s...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Mar 18, 2013
  • Number of updates: 16
  • Update frequency: every 2.1 days
  • Top authors: writecraft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by WCE CLOSE SHOPP STORE
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.68 ▼5.65
Dashboard /wp-admin3.31 ▼0.0443.15 ▼16.99
Posts /wp-admin/edit.php3.36 ▲0.0046.00 ▼3.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.45 ▲1.34
Media Library /wp-admin/upload.php3.23 ▲0.0033.27 ▲2.22

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WCE CLOSE SHOPP STORE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.27 ▼1.484.53 ▲2.3438.82 ▼12.87
Dashboard /wp-admin2,206 ▲184.89 ▼1.01107.72 ▼0.7137.32 ▼5.52
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0539.86 ▼5.9034.24 ▼1.00
Add New Post /wp-admin/post-new.php1,533 ▼423.16 ▼0.01588.70 ▼96.0855.43 ▲1.31
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0395.18 ▼1.9543.42 ▲4.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× 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/wce-close-shopp-store/wce-close-shopp-store.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wce-close-shopp-store/assets/templates/page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shopp_setting() in wp-content/plugins/wce-close-shopp-store/assets/views/close-shopp-admin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shopp, ecommerce

wce-close-shopp-store/wce-close-shopp-store.php 92% from 13 tests

The main file in "WCE CLOSE SHOPP STORE" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 518 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
Everything looks great! No dangerous files found in this plugin478 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4105118463
CSS11015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.59MB with 0.53MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png408.06KB71.99KB▼ 82.36%
screenshot-1.png150.68KB19.08KB▼ 87.33%
assets/menu.png50.10KB1.24KB▼ 97.52%