84% wp-ecommerce-toolbar

Code Review | WP eCommerce Toolbar

WordPress plugin WP eCommerce Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: wp-ecommerce-toolbar
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2015
  • Latest release: Mar 11, 2015
  • Number of updates: 5
  • Update frequency: every 8.4 days
  • Top authors: NikV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.70ms] Passed 4 tests

A check of server-side resources used by WP eCommerce Toolbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.55 ▼3.11
Dashboard /wp-admin3.32 ▲0.0253.99 ▲0.27
Posts /wp-admin/edit.php3.37 ▲0.0256.24 ▲2.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.11 ▼26.68
Media Library /wp-admin/upload.php3.24 ▲0.0237.30 ▼1.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP eCommerce Toolbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.161.77 ▲0.1039.61 ▼1.89
Dashboard /wp-admin2,198 ▲215.59 ▼0.0993.96 ▲5.2142.03 ▼1.93
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0338.66 ▼1.3936.04 ▲1.11
Add New Post /wp-admin/post-new.php1,526 ▼323.58 ▲0.36694.01 ▲85.5451.86 ▼3.28
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0498.70 ▼3.9440.98 ▼4.34

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

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)
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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ecommerce-toolbar/wp-ecommerce-toolbar.php:110

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: toolbar, wpecommerce

wp-ecommerce-toolbar/wp-ecommerce-toolbar.php Passed 13 tests

Analyzing the main PHP file in "WP eCommerce Toolbar" version 1.1
63 characters long description:
A simple toolbar extension for users of The WP eCommerce plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected93 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182072
JSON10019
Markdown1402

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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