Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.92ms] Passed 4 tests
This is a short check of server-side resources used by Yet another pricing table Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.61 ▼0.89 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.92 ▼1.75 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 47.25 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 97.60 ▼3.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.82 ▲2.61 |
Add New /wp-admin/admin.php?page=yapt_admin_add_page | 3.32 | 49.74 |
YA Pricing Table /wp-admin/admin.php?page=yapt_admin | 3.25 | 34.31 |
Server storage [IO: ▲2.01MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 58 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_yapt_templates |
wp_yapt_columns |
wp_yapt_features |
wp_yapt_pricing_tables |
wp_yapt_currency |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Yet another pricing table Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 14.46 ▼0.19 | 5.23 ▲3.31 | 37.75 ▼7.37 |
Dashboard /wp-admin | 2,244 ▲56 | 6.06 ▲1.18 | 116.14 ▼1.05 | 41.56 ▼6.53 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.63 ▲0.62 | 44.48 ▲4.74 | 35.88 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,698 ▲170 | 23.47 ▲0.23 | 594.58 ▼30.97 | 33.64 ▼27.06 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 5.22 ▲1.04 | 106.21 ▲6.87 | 40.67 ▼3.27 |
Add New /wp-admin/admin.php?page=yapt_admin_add_page | 1,629 | 2.44 | 42.85 | 45.67 |
YA Pricing Table /wp-admin/admin.php?page=yapt_admin | 1,010 | 2.32 | 35.21 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ya-pricing-table/admin/partials/yapt-admin-add-page.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ya-pricing-table/admin/partials/yapt-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'Type' not found in wp-content/plugins/ya-pricing-table/Type/Feature.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ya-pricing-table/includes/yapt_list.php:3
- > PHP Fatal error
Uncaught Error: Class 'Type' not found in wp-content/plugins/ya-pricing-table/Type/PriceTable.php:3
- > PHP Fatal error
Uncaught Error: Class 'Type' not found in wp-content/plugins/ya-pricing-table/Type/Column.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ya-pricing-table/admin/partials/yapt-admin-edit.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: price table, pricing table, table, price, dynamic pricing table...
ya-pricing-table/yapt.php 92% from 13 tests
This is the main PHP file of "Yet another pricing table Plugin" version 3.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ya-pricing-table.php" instead of "yapt.php")
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 detected16,149 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 3,077 | 2,133 | 13,608 |
PHP | 19 | 238 | 732 | 1,377 |
CSS | 5 | 181 | 70 | 984 |
PO File | 1 | 31 | 58 | 76 |
HTML | 3 | 1 | 0 | 58 |
SVG | 2 | 0 | 2 | 28 |
Markdown | 1 | 5 | 0 | 18 |
PHP code Passed 2 tests
An overview 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.21 |
Average class complexity | 7.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 7 | 12.73% |
▷ Public methods | 48 | 87.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.73% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
10 PNG files occupy 0.35MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 32.24KB | 14.24KB | ▼ 55.84% |
assets/banner-1544x500.png | 76.57KB | 30.74KB | ▼ 59.85% |
templates/yapt2021/yapt2021.png | 31.55KB | 13.69KB | ▼ 56.63% |
assets/banner-1544x500-rtl.png | 82.39KB | 34.25KB | ▼ 58.44% |
assets/screenshot-2.png | 31.55KB | 13.69KB | ▼ 56.63% |