Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.89ms] Passed 4 tests
Server-side resources used by TRIPLE PRICING TABLE
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 36.74 ▼8.80 |
Dashboard /wp-admin | 3.51 ▲0.20 | 56.89 ▲5.85 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 45.43 ▼4.77 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 88.43 ▼5.45 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.62 ▼0.54 |
Triple Pricing Table /wp-admin/options-general.php?page=pricingtable | 3.40 | 57.23 |
Server storage [IO: ▲2.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 64 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pricingtableconfig |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
TRIPLE PRICING TABLE: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.74 ▼0.57 | 1.72 ▼0.38 | 91.07 ▲47.05 |
Dashboard /wp-admin | 2,229 ▲38 | 5.09 ▲0.19 | 125.66 ▲23.80 | 43.60 ▲0.99 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.31 ▲0.30 | 40.09 ▲2.94 | 33.48 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.47 ▲0.27 | 647.68 ▼35.08 | 38.67 ▼27.48 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.39 ▲0.05 | 99.16 ▼7.66 | 44.12 ▼1.42 |
Triple Pricing Table /wp-admin/options-general.php?page=pricingtable | 821 | 1.96 | 26.79 | 31.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_pricingtableconfig
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× 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/triple-pricing-table/init.php:23
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/triple-pricing-table/assets/wp_bootstrap_navwalker.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=pricingtable
- > Network (severe)
wp-content/plugins/triple-pricing-table/script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Triple Pricing Header.), #2 (Admin page screenshot.), #3 (Customization options.)
- Tags: There are too many tags (31 tag instead of maximum 10)
triple-pricing-table/init.php 92% from 13 tests
"TRIPLE PRICING TABLE" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("triple-pricing-table.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin15,704 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 78 | 94 | 9,417 |
JavaScript | 3 | 577 | 197 | 1,563 |
Sass | 14 | 31 | 26 | 1,544 |
LESS | 14 | 31 | 36 | 1,534 |
SVG | 2 | 0 | 0 | 928 |
PHP | 2 | 125 | 93 | 600 |
Markdown | 1 | 37 | 0 | 118 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 9.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 19.10KB | 6.48KB | ▼ 66.05% |
assets/icon-128x128.png | 3.87KB | 1.70KB | ▼ 56.17% |