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.21MB] [CPU: ▼2.95ms] Passed 4 tests
Analyzing server-side resources used by TP Travel Package
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 39.62 ▼2.83 |
Dashboard /wp-admin | 3.51 ▲0.20 | 50.89 ▲1.50 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.50 ▲3.50 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 98.16 ▼12.47 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.57 ▲1.99 |
All Destination /wp-admin/edit.php?post_type=tp-destination | 3.47 | 39.20 |
Package Category /wp-admin/edit-tags.php?taxonomy=tp-package-category&post_type=tp-package | 3.42 | 42.06 |
All Package /wp-admin/edit.php?post_type=tp-package | 3.47 | 39.21 |
Add New /wp-admin/post-new.php?post_type=tp-package | 3.65 | 53.37 |
Add New /wp-admin/post-new.php?post_type=tp-destination | 3.58 | 54.81 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by TP Travel Package
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.67 ▲0.32 | 1.57 ▼0.08 | 42.03 ▼4.02 |
Dashboard /wp-admin | 2,255 ▲75 | 5.63 ▼0.04 | 87.73 ▲0.40 | 42.62 ▲2.49 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 1.98 ▼0.01 | 35.67 ▼6.21 | 34.00 ▼6.44 |
Add New Post /wp-admin/post-new.php | 1,586 ▲58 | 23.34 ▲0.08 | 668.47 ▼8.66 | 55.86 ▼8.84 |
Media Library /wp-admin/upload.php | 1,460 ▲63 | 4.23 ▲0.01 | 109.14 ▼11.30 | 49.76 ▼1.96 |
All Destination /wp-admin/edit.php?post_type=tp-destination | 1,175 | 1.97 | 29.84 | 31.05 |
Package Category /wp-admin/edit-tags.php?taxonomy=tp-package-category&post_type=tp-package | 1,334 | 2.12 | 27.72 | 35.36 |
All Package /wp-admin/edit.php?post_type=tp-package | 1,183 | 1.94 | 33.34 | 31.63 |
Add New /wp-admin/post-new.php?post_type=tp-package | 2,816 | 7.82 | 186.85 | 60.22 |
Add New /wp-admin/post-new.php?post_type=tp-destination | 2,652 | 7.75 | 179.11 | 58.42 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Package Meta Fields), #2 (Destination Meta Fields)
tp-travel-package/tp-travel-package.php Passed 13 tests
"TP Travel Package" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
This Plugin has assembled destination and packages and its elementary fields for travel websites.
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
Good job! No executable or dangerous file extensions detected2,481 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 373 | 9 | 1,625 |
PHP | 6 | 164 | 163 | 727 |
SVG | 3 | 0 | 3 | 125 |
JavaScript | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 21.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin