77% site-check-up-for-wp-ecommerce

Code Review | Store Check-Up and Fix-Up for WP-eCommerce

WordPress plugin Store Check-Up and Fix-Up for WP-eCommerce scored 77% from 54 tests.

About plugin

  • Plugin page: site-check-up-for...
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.01
  • WordPress version: 6.3.1
  • First release: Dec 5, 2014
  • Latest release: Dec 7, 2014
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: jeff@pyebrook.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,124 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.97ms] 75% from 4 tests

An overview of server-side resources used by Store Check-Up and Fix-Up for WP-eCommerce
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,316.57ms on /wp-admin/admin.php?page=pbci_about_help_support)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.90 ▲0.82
Dashboard /wp-admin3.47 ▲0.1648.74 ▼2.22
Posts /wp-admin/edit.php3.52 ▲0.1654.28 ▲1.84
Add New Post /wp-admin/post-new.php6.05 ▲0.1695.43 ▼5.76
Media Library /wp-admin/upload.php3.39 ▲0.1638.06 ▼0.71
about /wp-admin/admin.php?page=pbci_about_help_support4.441,316.57
Store Check-Up /wp-admin/tools.php?page=snappy_site3.3944.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Store Check-Up and Fix-Up for WP-eCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.18 ▼1.201.68 ▼0.1843.27 ▼1.64
Dashboard /wp-admin2,233 ▲486.00 ▲0.16103.53 ▼25.8537.41 ▼18.41
Posts /wp-admin/edit.php2,122 ▲302.03 ▼0.0045.28 ▲6.3641.60 ▲2.14
Add New Post /wp-admin/post-new.php1,557 ▲3723.43 ▲0.33679.04 ▼40.9762.22 ▲6.92
Media Library /wp-admin/upload.php1,412 ▲244.26 ▼0.13109.00 ▼16.9745.46 ▼13.93
about /wp-admin/admin.php?page=pbci_about_help_support9882.1629.6439.20
Store Check-Up /wp-admin/tools.php?page=snappy_site1,3342.1050.7337.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • PBCI_Admin_Notifications
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/site-check-up-for-wp-ecommerce/ajax.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/site-check-up-for-wp-ecommerce/vendor/pyebrook/pbci-lib/nag.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/site-check-up-for-wp-ecommerce/vendor/pyebrook/pbci-lib/nag.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/site-check-up-for-wp-ecommerce/vendor/pyebrook/pbci-lib/nag.php:187

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === site-check-up-for-wp-ecommerce === )
You can look at the official readme.txt

site-check-up-for-wp-ecommerce/wpec-site-checkup.php 92% from 13 tests

"Store Check-Up and Fix-Up for WP-eCommerce" version 4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("site-check-up-for-wp-ecommerce.php" instead of "wpec-site-checkup.php")

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
Good job! No executable or dangerous file extensions detected1,886 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP165095331,560
JavaScript1400208
CSS118072
JSON32046

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.40
▷ Minimum class complexity6.00
▷ Maximum class complexity37.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods619.35%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions43
▷ Named functions4297.67%
▷ Anonymous functions12.33%
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
15 PNG files occupy 0.59MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png52.32KB16.48KB▼ 68.51%
assets/pye-brook-logo-wpec-checkup.png213.57KB67.09KB▼ 68.58%
assets/pye-brook-logo-wpec-shopper-rewards-128.png18.99KB7.30KB▼ 61.59%
assets/pye-brook-logo-wpec-checkup-cropped.png187.21KB61.61KB▼ 67.09%
assets/pye-brook-logo-wpec-checkup-32.png4.75KB1.70KB▼ 64.18%