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.58MB] [CPU: ▼0.59ms] Passed 4 tests
An overview of server-side resources used by Simple Pricing Table
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 37.08 ▲1.13 |
Dashboard /wp-admin | 3.97 ▲0.62 | 52.88 ▼6.76 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 48.79 ▲4.56 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 84.39 ▼1.30 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 40.28 ▲5.96 |
All Pricing Tables /wp-admin/edit.php?post_type=simple_pricing_table | 3.94 | 42.24 |
Add New /wp-admin/post-new.php?post_type=simple_pricing_table | 4.19 | 47.10 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 365 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_spt_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Simple Pricing Table: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.35 ▲0.00 | 1.73 ▲0.18 | 39.91 ▼0.82 |
Dashboard /wp-admin | 2,230 ▲49 | 5.60 ▼0.12 | 85.55 ▼14.28 | 37.03 ▼3.10 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.03 ▲0.03 | 35.09 ▼0.71 | 35.83 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.71 ▲0.65 | 667.35 ▼48.12 | 59.10 ▼8.02 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.27 ▲0.07 | 100.11 ▼5.82 | 42.13 ▼3.21 |
All Pricing Tables /wp-admin/edit.php?post_type=simple_pricing_table | 1,114 | 1.97 | 32.34 | 29.85 |
Add New /wp-admin/post-new.php?post_type=simple_pricing_table | 1,716 | 2.63 | 51.66 | 59.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_spt_widget
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 fix the following
- 43× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-pricing-table/includes/cpt.php:8
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-pricing-table/includes/shortcode.php:8
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/simple-pricing-table/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Edit Pricing Table screen)
simple-pricing-table/simple-pricing-table.php 92% from 13 tests
The primary PHP file in "Simple Pricing Table" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin46,792 lines of code in 220 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,787 | 17,868 | 31,576 |
PHP | 61 | 2,129 | 6,020 | 7,177 |
CSS | 14 | 1,183 | 1,144 | 4,731 |
Sass | 16 | 300 | 25 | 1,374 |
JavaScript | 6 | 317 | 408 | 1,296 |
Markdown | 3 | 215 | 0 | 638 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 8 | 11.94% |
▷ Concrete classes | 59 | 88.06% |
▷ Final classes | 0 | 0.00% |
Methods | 521 | |
▷ Static methods | 86 | 16.51% |
▷ Public methods | 429 | 82.34% |
▷ Protected methods | 89 | 17.08% |
▷ Private methods | 3 | 0.58% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.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
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |