Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.85ms] Passed 4 tests
Analyzing server-side resources used by Pricena
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.95 ▼3.94 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.78 ▼4.18 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 73.01 ▲21.78 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.13 ▼12.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 38.18 ▼6.37 |
Pricena /wp-admin/options-general.php?page=pna-settings | 3.28 | 37.06 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pricena
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲115 | 13.75 ▲0.06 | 6.03 ▲4.25 | 43.02 ▼1.24 |
Dashboard /wp-admin | 2,224 ▲18 | 5.94 ▲1.08 | 101.02 ▼9.37 | 41.39 ▼2.10 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.34 ▲0.24 | 40.12 ▼0.52 | 34.86 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 17.82 ▼5.35 | 708.80 ▲82.87 | 53.68 ▼0.98 |
Media Library /wp-admin/upload.php | 1,409 ▲27 | 4.37 ▲0.17 | 99.46 ▼6.33 | 42.33 ▼1.94 |
Pricena /wp-admin/options-general.php?page=pna-settings | 784 | 1.81 | 28.10 | 38.05 |
Uninstaller [IO: ✅] [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 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pricena/public/partials/pricena-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pricena/admin/partials/pricena-admin-storesetup-done.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pricena/admin/partials/pricena-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/pricena/admin/partials/pricena-admin-storesetup-form.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: saudy arabia, store comparison, egypt, price comparison, pricena...
pricena/pricena.php Passed 13 tests
The principal PHP file in "Pricena" v. 1.0.1 is loaded by WordPress automatically on each request
41 characters long description:
List your WooCommerce products on Pricena
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected520 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 171 | 589 | 505 |
CSS | 3 | 1 | 14 | 8 |
JavaScript | 3 | 4 | 60 | 7 |
PHP code Passed 2 tests
This is a very shot review 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.22 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 23 | 76.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 23.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 103.44KB | 33.26KB | ▼ 67.84% |
assets/icon-128x128.png | 5.13KB | 2.09KB | ▼ 59.30% |
assets/banner-772x250.png | 116.99KB | 65.41KB | ▼ 44.09% |