Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.49ms] Passed 4 tests
Analyzing server-side resources used by Storefront Pro Sales Pop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 43.42 ▼2.22 |
Dashboard /wp-admin | 3.39 ▲0.00 | 51.52 ▼17.44 |
Posts /wp-admin/edit.php | 3.50 ▲0.11 | 48.57 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 86.78 ▼21.22 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 38.91 ▲1.12 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Storefront Pro Sales Pop
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.30 | 1.77 ▲0.29 | 44.82 ▲4.41 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.08 | 88.39 ▼2.55 | 39.31 ▼9.03 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▼0.01 | 34.41 ▼1.47 | 35.38 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 22.89 ▼0.07 | 673.25 ▼0.83 | 52.16 ▲0.56 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.06 | 95.34 ▼13.57 | 43.28 ▼4.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/storefront-pro-sales-pop/storefront-pro-sales-pop.php:72
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Sales pop settings in customizer), #2 (Sales pop vertical), #3 (Sales pop horizontal)
storefront-pro-sales-pop/storefront-pro-sales-pop.php Passed 13 tests
The primary PHP file in "Storefront Pro Sales Pop" version 1.1.0 is used by WordPress to initiate all plugin functionality
92 characters long description:
Shows fully customizable sales pop showing real time purchases, build trust and boost sales!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin789 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 11 | 46 | 302 |
PHP | 3 | 61 | 127 | 241 |
Sass | 2 | 14 | 0 | 181 |
JSON | 1 | 0 | 0 | 34 |
CSS | 4 | 14 | 6 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 11 | 64.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 35.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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