Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.34ms] Passed 4 tests
A check of server-side resources used by Upurr Store
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.38 ▲0.13 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.79 ▼21.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.02 ▲3.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.73 ▼3.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 33.91 ▼0.51 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Upurr Store
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.45 ▲0.07 | 1.72 ▼0.47 | 39.54 ▼1.84 |
Dashboard /wp-admin | 2,209 ▲21 | 5.09 ▲0.21 | 110.13 ▲5.52 | 40.12 ▼4.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 39.92 ▲2.64 | 35.70 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.22 ▲0.10 | 653.11 ▲22.40 | 55.86 ▼2.96 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.01 | 95.01 ▼2.39 | 42.31 ▼4.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-menus.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-ajax-actions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-styles.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
6 plugin tags: upurr, upurr plugin, upurr store, upurr woocommerce, woocommerce plugin...
upurr-store/index.php 92% from 13 tests
This is the main PHP file of "Upurr Store" version 1.0.0, 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: It is recommended to name the main PHP file as the plugin slug ("upurr-store.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin685 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 76 | 0 | 358 |
PHP | 6 | 58 | 7 | 193 |
CSS | 1 | 20 | 0 | 110 |
SVG | 1 | 1 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 2.67MB with 1.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 174.31KB | 58.03KB | ▼ 66.71% |
assets/icon-128x128.png | 8.85KB | 3.60KB | ▼ 59.32% |
assets/banner-1544x500-rtl.png | 768.52KB | 181.45KB | ▼ 76.39% |
assets/banner-772x250-rtl.png | 174.31KB | 58.03KB | ▼ 66.71% |
assets/screenshot-1.png | 277.55KB | 70.51KB | ▼ 74.60% |