Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.38ms] Passed 4 tests
Analyzing server-side resources used by Business Review Custom Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.99 ▼3.66 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.02 ▼2.58 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 66.22 ▲15.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 93.11 ▼13.86 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 38.25 ▲2.57 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=business_review | 3.27 | 38.86 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=business_review | 3.27 | 34.99 |
All Reviews /wp-admin/edit.php?post_type=business_review | 3.33 | 37.92 |
Add New /wp-admin/post-new.php?post_type=business_review | 3.41 | 58.88 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
category_children |
Browser metrics Passed 4 tests
A check of browser resources used by Business Review Custom Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 14.85 ▲0.47 | 1.83 ▲0.04 | 41.35 ▼1.28 |
Dashboard /wp-admin | 2,241 ▲53 | 4.87 ▼1.18 | 111.46 ▲6.86 | 37.30 ▼8.00 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.02 ▲0.02 | 43.74 ▲5.85 | 39.73 ▲6.18 |
Add New Post /wp-admin/post-new.php | 1,567 ▲30 | 23.06 ▼0.24 | 675.96 ▲17.57 | 62.74 ▲10.57 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.22 ▼0.06 | 99.24 ▼9.86 | 44.79 ▼2.29 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=business_review | 1,475 | 2.14 | 28.02 | 34.91 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=business_review | 1,342 | 2.14 | 30.03 | 29.62 |
All Reviews /wp-admin/edit.php?post_type=business_review | 1,143 | 1.93 | 32.82 | 32.45 |
Add New /wp-admin/post-new.php?post_type=business_review | 2,686 | 8.05 | 173.76 | 80.86 |
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 did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- category_children
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/your-custom-post-type/custom_post.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires php: Invalid plugin version format
your-custom-post-type/custom_post.php 92% from 13 tests
The entry point to "Business Review Custom Post" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("your-custom-post-type.php" instead of "custom_post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin119 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 32 | 114 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin