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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.90 ▲0.82 |
Dashboard /wp-admin | 3.47 ▲0.16 | 48.74 ▼2.22 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 54.28 ▲1.84 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 95.43 ▼5.76 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.06 ▼0.71 |
about /wp-admin/admin.php?page=pbci_about_help_support | 4.44 | 1,316.57 |
Store Check-Up /wp-admin/tools.php?page=snappy_site | 3.39 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.18 ▼1.20 | 1.68 ▼0.18 | 43.27 ▼1.64 |
Dashboard /wp-admin | 2,233 ▲48 | 6.00 ▲0.16 | 103.53 ▼25.85 | 37.41 ▼18.41 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.03 ▼0.00 | 45.28 ▲6.36 | 41.60 ▲2.14 |
Add New Post /wp-admin/post-new.php | 1,557 ▲37 | 23.43 ▲0.33 | 679.04 ▼40.97 | 62.22 ▲6.92 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.26 ▼0.13 | 109.00 ▼16.97 | 45.46 ▼13.93 |
about /wp-admin/admin.php?page=pbci_about_help_support | 988 | 2.16 | 29.64 | 39.20 |
Store Check-Up /wp-admin/tools.php?page=snappy_site | 1,334 | 2.10 | 50.73 | 37.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 509 | 533 | 1,560 |
JavaScript | 1 | 40 | 0 | 208 |
CSS | 1 | 18 | 0 | 72 |
JSON | 3 | 2 | 0 | 46 |
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 code | 0.34 |
Average class complexity | 19.40 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 6 | 19.35% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
Functions | 43 | |
▷ Named functions | 42 | 97.67% |
▷ Anonymous functions | 1 | 2.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 52.32KB | 16.48KB | ▼ 68.51% |
assets/pye-brook-logo-wpec-checkup.png | 213.57KB | 67.09KB | ▼ 68.58% |
assets/pye-brook-logo-wpec-shopper-rewards-128.png | 18.99KB | 7.30KB | ▼ 61.59% |
assets/pye-brook-logo-wpec-checkup-cropped.png | 187.21KB | 61.61KB | ▼ 67.09% |
assets/pye-brook-logo-wpec-checkup-32.png | 4.75KB | 1.70KB | ▼ 64.18% |