Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼297.36ms] Passed 4 tests
Analyzing server-side resources used by Pricing Table by PS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.22 | 55.16 ▲3.62 |
Dashboard /wp-admin | 3.57 ▲0.16 | 32.59 ▼0.69 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 38.62 ▲2.18 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.07 | 92.82 ▼1,191.50 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 23.96 ▲0.56 |
Pricing Table /wp-admin/edit.php?post_type=pspt_type | 3.54 | 26.21 |
Add New /wp-admin/post-new.php?post_type=pspt_type | 3.73 | 39.40 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Pricing Table by PS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,943 ▲199 | 16.52 ▲0.88 | 10.28 ▲3.72 | 2.52 ▼0.13 |
Dashboard /wp-admin | 2,929 ▲68 | 6.05 ▼0.09 | 119.28 ▼19.30 | 150.85 ▼11.85 |
Posts /wp-admin/edit.php | 2,722 ▲28 | 3.25 ▲0.02 | 64.76 ▼1.99 | 141.64 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,686 ▲25 | 15.99 ▼0.27 | 405.09 ▼34.20 | 152.23 ▼7.04 |
Media Library /wp-admin/upload.php | 1,735 ▲37 | 5.51 ▼0.02 | 138.98 ▼2.43 | 195.95 ▲6.88 |
Pricing Table /wp-admin/edit.php?post_type=pspt_type | 1,407 | 3.16 | 60.69 | 109.16 |
Add New /wp-admin/post-new.php?post_type=pspt_type | 3,336 | 4.29 | 86.02 | 199.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-by-ps/pricing-table-by-ps.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=pspt_type
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=pspt_type:244:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
- > GET request to /wp-admin/post-new.php?post_type=pspt_type
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=pspt_type:664:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pspt_type
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: table comparison, pricing plan, pricing table, plan table, shortcode
pricing-table-by-ps/pricing-table-by-ps.php Passed 13 tests
The principal PHP file in "Pricing Table by PS" v. 1.0 is loaded by WordPress automatically on each request
109 characters long description:
Build your pricing table or comparison table, select a pre-built layout and display it thanks to a shortcode.
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
Good job! No executable or dangerous file extensions detected3,154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 472 | 24 | 2,116 |
PHP | 1 | 153 | 19 | 1,038 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.47MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/table_comparison_layout/layout_11.PNG | 17.29KB | 8.76KB | ▼ 49.35% |
img/pricing_table_layout/layout_24.PNG | 17.19KB | 7.83KB | ▼ 54.43% |
img/pricing_table_layout/layout_42.PNG | 28.42KB | 12.24KB | ▼ 56.95% |
img/pricing_table_layout/layout_25.PNG | 17.31KB | 7.85KB | ▼ 54.63% |
img/table_comparison_layout/layout_39.PNG | 17.50KB | 8.75KB | ▼ 49.98% |