74% wpec-status-board

Code Review | WP e-Commerce - Status Board

WordPress plugin WP e-Commerce - Status Board scored74%from 54 tests.

About plugin

  • Plugin page: wpec-status-board
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Oct 5, 2013
  • Latest release: Oct 5, 2013
  • Number of updates: 2
  • Update frequency: every 19.5 days
  • Top authors: cklosows (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /717 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.17MB] [CPU: ▼9.57ms] Passed 4 tests

Server-side resources used by WP e-Commerce - Status Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.31 ▼8.47
Dashboard /wp-admin3.19 ▼0.1134.17 ▼13.46
Posts /wp-admin/edit.php3.26 ▼0.1038.54 ▼7.00
Add New Post /wp-admin/post-new.php5.44 ▼0.4470.75 ▼9.33
Media Library /wp-admin/upload.php3.20 ▼0.0331.08 ▼2.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP e-Commerce - Status Board
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.36 ▼1.261.84 ▼0.0740.70 ▼3.40
Dashboard /wp-admin2,210 ▲724.95 ▼0.74134.11 ▲27.8449.27 ▲7.68
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.20 ▲5.5436.65 ▲2.60
Add New Post /wp-admin/post-new.php1,533 ▲1323.27 ▲0.17621.99 ▼34.4951.72 ▼1.87
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0098.20 ▲1.5241.93 ▼0.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'wpecsb_deactivation_tasks' not found or invalid function name
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpec-status-board/wpec-status-board.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: ios, wp ecommerce, panic, status board, ipad

wpec-status-board/wpec-status-board.php Passed 13 tests

"WP e-Commerce - Status Board" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Creates an endpoint for your WP e-Commerce stats for use on the Status Board iPad app

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221298
PO File18841

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin