Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.24ms] Passed 4 tests
An overview of server-side resources used by Pricing Tables
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.43 ▼11.34 |
Dashboard /wp-admin | 3.51 ▲0.20 | 48.04 ▼0.66 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.56 ▲3.40 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 98.64 ▼9.73 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.37 ▲0.78 |
WPT /wp-admin/edit.php?post_type=wpt | 3.47 | 37.95 |
WPT Info /wp-admin/edit.php?post_type=wpt&page=wpt_settings | 3.40 | 32.85 |
Add New WPT /wp-admin/post-new.php?post_type=wpt | 3.44 | 54.63 |
Server storage [IO: ▲2.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Pricing Tables: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲249 | 13.90 ▼0.57 | 5.86 ▲3.98 | 44.22 ▲0.51 |
Dashboard /wp-admin | 2,245 ▲57 | 5.12 ▼0.78 | 115.71 ▲12.19 | 78.80 ▲36.66 |
Posts /wp-admin/edit.php | 2,148 ▲56 | 2.32 ▲0.26 | 39.47 ▼2.04 | 34.97 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,718 ▲204 | 22.50 ▲5.03 | 594.14 ▼117.48 | 34.63 ▼20.86 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.45 ▲0.20 | 104.07 ▼9.23 | 74.91 ▲28.58 |
WPT /wp-admin/edit.php?post_type=wpt | 1,112 | 2.25 | 35.33 | 31.98 |
WPT Info /wp-admin/edit.php?post_type=wpt&page=wpt_settings | 1,410 | 9.26 | 297.61 | 77.19 |
Add New WPT /wp-admin/post-new.php?post_type=wpt | 1,991 | 2.85 | 54.62 | 91.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 34 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Warning in wp-content/plugins/pricing-tables/index.php+446
Cannot assign an empty string to a string offset
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+451
Uninitialized string offset: 1
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+451
Uninitialized string offset: 2
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+451
Uninitialized string offset: 3
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 13
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 23
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 33
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 14
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 24
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 34
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 15
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 25
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 35
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 16
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 26
- > GET request to /wp-admin/post-new.php?post_type=wpt
- > Notice in wp-content/plugins/pricing-tables/index.php+461
Uninitialized string offset: 36
SRP 50% 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pricing-tables/index.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pricing-tables/wpt-admin.php:2
- > 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Normal View.), #2 (Admin Settings.), #3 (Themes One.), #4 (Themes two.), #5 (Themes Three.)
pricing-tables/index.php 92% from 13 tests
The primary PHP file in "Pricing Tables" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pricing-tables.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin2,484 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 670 | 34 | 1,530 |
CSS | 5 | 57 | 71 | 915 |
JavaScript | 1 | 30 | 2 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.12MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/monsoon/cross-red.png | 3.05KB | 0.35KB | ▼ 88.36% |
themes/ultra/cross-red.png | 3.05KB | 0.35KB | ▼ 88.36% |
themes/ultra/ok-green.png | 3.13KB | 0.53KB | ▼ 83.20% |
themes/flat/ok.png | 3.10KB | 0.55KB | ▼ 82.23% |
themes/flat/cross-red.png | 3.05KB | 0.35KB | ▼ 88.36% |