Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼139.97ms] Passed 4 tests
A check of server-side resources used by Shopp Product Page Browser
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.69 ▲9.88 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.56 ▼2.84 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.34 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.29 ▼556.24 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.87 ▲0.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Shopp Product Page Browser: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.96 ▲0.00 | 17.79 ▲7.95 | 47.09 ▼4.66 |
Dashboard /wp-admin | 2,969 ▲38 | 5.91 ▼0.19 | 145.86 ▲0.24 | 104.64 ▼1.64 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 72.01 ▲6.62 | 94.88 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,676 ▼6 | 18.93 ▲0.17 | 434.17 ▲31.43 | 118.07 ▲9.22 |
Media Library /wp-admin/upload.php | 1,810 ▲65 | 5.04 ▲0.05 | 143.84 ▼85.36 | 115.83 ▼7.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 3× 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/shopp-product-page-browser-sppb/includes/load-scripts.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopp-product-page-browser-sppb/includes/other_plugins.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function shopp_setting() in wp-content/plugins/shopp-product-page-browser-sppb/includes/settings.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
8 plugin tags: previous, webshop, browse, ecommerce, products...
shopp-product-page-browser-sppb/sppb.php 92% from 13 tests
This is the main PHP file of "Shopp Product Page Browser" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shopp-product-page-browser-sppb.php" instead of "sppb.php")
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 plugin516 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 134 | 80 | 509 |
CSS | 1 | 3 | 8 | 6 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin