Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼12.59ms] Passed 4 tests
Analyzing server-side resources used by Ecommerce Banner and Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 45.83 ▲0.80 |
Dashboard /wp-admin | 3.38 ▲0.07 | 55.77 ▲3.66 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.68 ▲2.43 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 38.12 ▼54.72 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.96 ▲1.13 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ecommerce Banner and Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.48 ▼0.89 | 9.62 ▲7.64 | 43.06 ▼4.41 |
Dashboard /wp-admin | 2,193 ▲16 | 5.61 ▼0.01 | 93.98 ▲3.70 | 42.63 ▲1.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.06 | 41.00 ▲6.79 | 36.28 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.00 ▲0.05 | 668.46 ▼26.54 | 58.38 ▲0.88 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.20 ▲0.11 | 93.34 ▼13.78 | 44.82 ▼0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ecommerce-banner-and-gallery/public/partials/wc-banner-gallery-public-display.php
- > /wp-content/plugins/ecommerce-banner-and-gallery/admin/partials/wc-banner-gallery-admin-display.php
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
- Screenshots: Please a description for screenshot #1 in ecommerce-banner-and-gallery/assets to your readme.txt
ecommerce-banner-and-gallery/wc-banner-gallery.php 85% from 13 tests
The main file in "Ecommerce Banner and Gallery" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ecommerce-banner-and-gallery.php" instead of "wc-banner-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin493 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 136 | 537 | 288 |
CSS | 4 | 14 | 9 | 122 |
JavaScript | 3 | 24 | 51 | 65 |
Markdown | 1 | 8 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected