Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.85ms] Passed 4 tests
This is a short check of server-side resources used by OS Pricing Tables
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 44.34 ▲0.16 |
Dashboard /wp-admin | 3.59 ▲0.28 | 51.06 ▲1.09 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 51.70 ▲2.17 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 81.94 ▼10.17 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.08 ▼2.49 |
About /wp-admin/edit.php?post_type=ospt-pricing-table&page=about-developer | 3.46 | 35.32 |
Add New /wp-admin/post-new.php?post_type=ospt-pricing-table | 3.55 | 44.00 |
Pricing Table /wp-admin/edit.php?post_type=ospt-pricing-table | 3.52 | 39.62 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OS Pricing Tables
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲255 | 14.14 ▼0.48 | 14.28 ▲11.76 | 55.31 ▲11.21 |
Dashboard /wp-admin | 2,258 ▲70 | 5.05 ▼0.77 | 101.21 ▼7.36 | 40.17 ▼2.80 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.34 ▲0.35 | 36.62 ▼1.66 | 35.53 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 17.83 ▼0.45 | 685.49 ▲17.97 | 37.19 ▼24.24 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.55 ▲0.39 | 107.82 ▲3.24 | 51.06 ▲2.06 |
About /wp-admin/edit.php?post_type=ospt-pricing-table&page=about-developer | 1,027 | 2.05 | 31.88 | 30.13 |
Add New /wp-admin/post-new.php?post_type=ospt-pricing-table | 4,596 | 3.08 | 100.26 | 60.62 |
Pricing Table /wp-admin/edit.php?post_type=ospt-pricing-table | 1,133 | 2.30 | 37.35 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Warning in wp-content/plugins/os-pricing-tables/includes/admin/ospt-post-types.php+175
Illegal string offset 'settings'
- 23 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/ospt-post-types.php+175
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.packages.php+164
Undefined variable: i
- 11 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Warning in wp-content/plugins/os-pricing-tables/includes/admin/ospt-post-types.php+175
Illegal string offset 'general'
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+82
Undefined variable: paypal_sandbox
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+87
Undefined variable: paypal_email
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+92
Undefined variable: return_url
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+97
Undefined variable: cancel_url
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+105
Undefined variable: authorize_sandbox
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+110
Undefined variable: login_id
- > GET request to /wp-admin/post-new.php?post_type=ospt-pricing-table
- > Notice in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php+115
Undefined variable: transaction_key
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.packages.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/templates/ospt.design-6.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/templates/ospt.design-4.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/templates/ospt.design-1.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.designs.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/templates/ospt.design-2.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptPostTypes' not found in wp-content/plugins/os-pricing-tables/includes/templates/ospt.design-5.php:2
- > PHP Fatal error
Uncaught Error: Class 'osptCountries' not found in wp-content/plugins/os-pricing-tables/includes/admin/meta-boxes/views/ospt.general.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Pricing tables admin listing), #2 (Package setting area in admin side), #3 (Design setting area in admin side), #4 (Global setting area in admin side), #5 (OS pricing table design 1), #6 (OS pricing table design 2), #7 (OS pricing table design 3), #8 (OS pricing table design 4), #9 (OS pricing table design 5), #10 (OS pricing table design 6)
os-pricing-tables/ospt-pricing-tables.php 92% from 13 tests
The main PHP script in "OS Pricing Tables" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("os-pricing-tables.php" instead of "ospt-pricing-tables.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,841 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 439 | 562 | 2,913 |
SVG | 2 | 0 | 0 | 808 |
JavaScript | 6 | 5 | 13 | 75 |
CSS | 4 | 6 | 19 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 73 | |
▷ Static methods | 3 | 4.11% |
▷ Public methods | 67 | 91.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.91MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social.png | 1.61KB | 1.12KB | ▼ 30.45% |
screenshot-3.png | 393.82KB | 101.84KB | ▼ 74.14% |
screenshot-6.png | 48.08KB | 16.44KB | ▼ 65.81% |
images/tick.png | 3.83KB | 0.43KB | ▼ 88.87% |
colorbox/images/border.png | 0.14KB | 0.16KB | 0.00% |