Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.20ms] Passed 4 tests
A check of server-side resources used by B Testimonial
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.01 ▲0.58 |
Dashboard /wp-admin | 3.49 ▲0.18 | 45.10 ▼4.84 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.57 ▲3.39 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 95.41 ▲7.63 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.80 ▲1.67 |
All Testimonials /wp-admin/edit.php?post_type=btstestimonial | 3.50 | 41.44 |
Shortcode Generator /wp-admin/edit.php?post_type=btsshortcode | 3.50 | 39.88 |
Category /wp-admin/edit-tags.php?taxonomy=btscategory&post_type=btstestimonial | 3.40 | 33.50 |
Add New /wp-admin/post-new.php?post_type=btstestimonial | 3.50 | 51.37 |
Server storage [IO: ▲1.79MB] [DB: ▲0.33MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 184 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
B Testimonial: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲238 | 13.60 ▼0.68 | 6.65 ▲5.00 | 36.64 ▼8.11 |
Dashboard /wp-admin | 2,247 ▲59 | 5.89 ▲0.01 | 100.38 ▼15.69 | 39.58 ▼3.52 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▼0.02 | 41.44 ▲5.20 | 35.06 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6,465 ▲4,932 | 23.62 ▲0.54 | 885.59 ▲272.25 | 67.69 ▲11.49 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.19 ▼0.09 | 92.27 ▼7.89 | 53.48 ▲12.32 |
All Testimonials /wp-admin/edit.php?post_type=btstestimonial | 1,286 | 3.82 | 56.59 | 33.57 |
Shortcode Generator /wp-admin/edit.php?post_type=btsshortcode | 1,286 | 3.74 | 55.44 | 29.75 |
Category /wp-admin/edit-tags.php?taxonomy=btscategory&post_type=btstestimonial | 1,303 | 2.14 | 25.84 | 27.16 |
Add New /wp-admin/post-new.php?post_type=btstestimonial | 1,835 | 4.40 | 71.93 | 36.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/b-testimonial/inc/theme/eleven.php:4
- > PHP Notice
Undefined variable: class in wp-content/plugins/b-testimonial/inc/theme/eleven.php on line 3
- > PHP Notice
Undefined variable: class in wp-content/plugins/b-testimonial/inc/theme/two.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/b-testimonial/inc/theme/three.php:3
- > PHP Notice
Undefined variable: class in wp-content/plugins/b-testimonial/inc/theme/one.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/b-testimonial/inc/shortcode-free.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b-testimonial/assets_cpt.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/b-testimonial/inc/theme/one.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/b-testimonial/inc/theme/four.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/b-testimonial/inc/theme/five.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Screenshot-1.png), #2 (Screenshot-2.png), #3 (Screenshot-3.png), #4 (Screenshot-4.png), #5 (Screenshot-5.png), #6 (Screenshot-6.png), #7 (Screenshot-7.png), #8 (Screenshot-8.png), #9 (Screenshot-9.png), #10 (Screenshot-10.png)
b-testimonial/init.php 69% from 13 tests
"B Testimonial" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 320 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("b-testimonial.php" instead of "init.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 plugin37,861 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 3,421 | 1,544 | 15,218 |
CSS | 14 | 291 | 582 | 7,183 |
PO File | 20 | 3,197 | 3,594 | 6,490 |
Sass | 16 | 953 | 4 | 4,814 |
JavaScript | 11 | 1,269 | 377 | 4,137 |
Markdown | 1 | 8 | 0 | 17 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 25.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 6.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 267 | |
▷ Static methods | 42 | 15.73% |
▷ Public methods | 265 | 99.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.75% |
Functions | 24 | |
▷ Named functions | 24 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |