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
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.51ms] Passed 4 tests
This is a short check of server-side resources used by Product Brand
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.25 ▼3.18 |
Dashboard /wp-admin | 3.48 ▲0.17 | 50.94 ▲6.39 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 53.94 ▲5.81 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 82.32 ▼11.07 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 44.85 ▲7.80 |
/wp-admin/admin.php?page=plugineye275 | 3.34 | 36.05 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.31 | 31.53 |
Product Brand /wp-admin/admin.php?page=ns-product-brand/ns-admin-options/ns_admin_option_dashboard.php | 3.34 | 35.93 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Brand
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲257 | 14.77 ▲0.39 | 1.87 ▲0.08 | 41.54 ▼9.34 |
Dashboard /wp-admin | 2,358 ▲167 | 6.54 ▲1.59 | 130.69 ▲30.43 | 96.56 ▲59.30 |
Posts /wp-admin/edit.php | 2,279 ▲187 | 3.42 ▲1.39 | 53.52 ▲12.14 | 75.24 ▲40.92 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 17.52 ▼5.51 | 667.97 ▲56.41 | 36.55 ▼14.57 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.18 ▼0.05 | 96.27 ▼0.61 | 83.93 ▲42.56 |
/wp-admin/admin.php?page=plugineye275 | 1,080 | 3.03 | 42.45 | 76.80 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 694 | 1.72 | 9.63 | 17.65 |
Product Brand /wp-admin/admin.php?page=ns-product-brand/ns-admin-options/ns_admin_option_dashboard.php | 1,108 | 3.15 | 38.12 | 65.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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
Please fix the following
- 1× 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/ns-product-brand/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Settings Product Brand.), #2 (View single product page with brand.), #3 (View page brand.)
ns-product-brand/ns-product-brand.php Passed 13 tests
The principal PHP file in "Product Brand" v. 1.1.4 is loaded by WordPress automatically on each request
44 characters long description:
This plugin allow to add a Brand to Products
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,117 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 117 | 183 | 686 |
CSS | 3 | 22 | 8 | 276 |
PO File | 1 | 32 | 32 | 80 |
JavaScript | 2 | 14 | 1 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 26.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 73.68% |
Functions | 24 | |
▷ Named functions | 14 | 58.33% |
▷ Anonymous functions | 10 | 41.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.54MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-admin-options/img/productbrand-01-guide.png | 41.33KB | 12.29KB | ▼ 70.27% |
screenshot-2.png | 120.31KB | 38.26KB | ▼ 68.20% |
ns-admin-options/img/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
screenshot-3.png | 170.35KB | 58.43KB | ▼ 65.70% |