Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.10ms] Passed 4 tests
A check of server-side resources used by Electro Pricing Tables Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.96 ▼2.07 |
Dashboard /wp-admin | 3.48 ▲0.18 | 49.25 ▼3.74 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.96 ▲7.54 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.53 ▼6.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.64 ▲3.45 |
Add New Table /wp-admin/post-new.php?post_type=et_pricing_table | 3.42 | 43.29 |
All Items /wp-admin/edit.php?post_type=et_pricing_table | 3.45 | 39.68 |
Server storage [IO: ▲3.26MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 132 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Electro Pricing Tables Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲290 | 15.43 ▲1.06 | 2.12 ▲0.32 | 69.97 ▲24.63 |
Dashboard /wp-admin | 2,403 ▲215 | 7.03 ▲2.14 | 136.74 ▲20.36 | 106.26 ▲61.86 |
Posts /wp-admin/edit.php | 2,327 ▲241 | 3.90 ▲1.85 | 54.81 ▲19.80 | 56.76 ▲23.43 |
Add New Post /wp-admin/post-new.php | 1,580 ▲46 | 17.80 ▼5.38 | 628.89 ▲1.90 | 149.82 ▲93.35 |
Media Library /wp-admin/upload.php | 1,466 ▲84 | 4.74 ▲0.55 | 86.65 ▼11.81 | 82.65 ▲39.11 |
Add New Table /wp-admin/post-new.php?post_type=et_pricing_table | 2,010 | 4.39 | 77.15 | 129.99 |
All Items /wp-admin/edit.php?post_type=et_pricing_table | 1,293 | 3.49 | 49.46 | 85.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=et_pricing_table
- > Notice in wp-content/plugins/electro-pricing-tables-lite/lib/codestar-framework-1.0.1/classes/metabox.class.php+70
Trying to access array offset on value of type bool
SRP 0% 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
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/electro-pricing-tables-lite/designs/karma.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/norbu.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/pema.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/tashi.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/yonten.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/sonam.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/tenzin.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/yama.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/jinpa.php
- > /wp-content/plugins/electro-pricing-tables-lite/designs/palden.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: et_metas in wp-content/plugins/electro-pricing-tables-lite/designs/tenzin.php on line 3
- > PHP Notice
Undefined variable: et_metas in wp-content/plugins/electro-pricing-tables-lite/designs/tashi.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/electro-pricing-tables-lite/designs/sonam.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/electro-pricing-tables-lite/designs/palden.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/electro-pricing-tables-lite/designs/norbu.php on line 3
- > PHP Notice
Undefined variable: et_metas in wp-content/plugins/electro-pricing-tables-lite/designs/karma.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/electro-pricing-tables-lite/et-pricing-table-post-type.php:2
- > PHP Notice
Undefined variable: et_metas in wp-content/plugins/electro-pricing-tables-lite/designs/rabten.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/electro-pricing-tables-lite/designs/rabten.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/electro-pricing-tables-lite/pricing-table-shortcode.php:45
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=et_pricing_table
- > Network (severe)
wp-content/plugins/electro-pricing-tables-lite/assets/designs/tenzin.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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: #10 (pricing tables lists), #11 (Choose pricing table design), #13 (Add new table)
electro-pricing-tables-lite/plugin-main.php 92% from 13 tests
The main PHP file in "Electro Pricing Tables Lite" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("electro-pricing-tables-lite.php" instead of "plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin33,778 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,928 |
PHP | 64 | 1,520 | 1,214 | 5,406 |
CSS | 9 | 323 | 78 | 5,032 |
JavaScript | 8 | 1,068 | 793 | 4,533 |
SVG | 2 | 0 | 0 | 3,326 |
Sass | 5 | 318 | 0 | 1,952 |
PO File | 6 | 261 | 285 | 601 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 101 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 48 | 96.00% |
▷ Anonymous functions | 2 | 4.00% |
Constants | 14 | |
▷ Global constants | 14 | 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
18 PNG files occupy 0.36MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/codestar-framework-1.0.1/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/designs/yama.png | 18.11KB | 8.51KB | ▼ 53.01% |
assets/designs/dawa.png | 133.48KB | 69.40KB | ▼ 48.01% |
assets/images/line.png | 1.53KB | 1.81KB | 0.00% |
assets/designs/sonam.png | 11.27KB | 6.33KB | ▼ 43.84% |