Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.87ms] Passed 4 tests
An overview of server-side resources used by B3P Testimonial
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.99 ▼1.89 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.14 ▼4.64 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.43 ▼6.45 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.15 ▼6.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.84 ▲0.75 |
Add New /wp-admin/post-new.php?post_type=b3p-testimonial | 3.39 | 61.23 |
Testimonials /wp-admin/edit.php?post_type=b3p-testimonial | 3.31 | 31.39 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for B3P Testimonial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲309 | 13.95 ▼0.40 | 20.91 ▲19.24 | 49.28 ▲5.92 |
Dashboard /wp-admin | 2,222 ▲42 | 5.52 ▼0.20 | 90.85 ▼1.23 | 40.28 ▼1.04 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.04 ▲0.08 | 39.40 ▲2.64 | 37.88 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.41 ▲0.12 | 669.69 ▲6.94 | 65.53 ▲11.68 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.14 ▼0.07 | 100.01 ▼12.13 | 42.25 ▼5.90 |
Add New /wp-admin/post-new.php?post_type=b3p-testimonial | 2,244 | 7.54 | 174.14 | 73.47 |
Testimonials /wp-admin/edit.php?post_type=b3p-testimonial | 1,094 | 1.98 | 37.28 | 31.02 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b3p-responsive-testimonial/testmonial_type.php:31
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/b3p-responsive-testimonial/b3p-testimonial.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/b3p-responsive-testimonial/b3p-testimonial.php:13
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== b3p-responsive-testimonial ===
) - Donate link: Invalid URI found ("b3psolution.com")
b3p-responsive-testimonial/b3p-testimonial.php 92% from 13 tests
The principal PHP file in "B3P Testimonial" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("b3p-responsive-testimonial.php" instead of "b3p-testimonial.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,188 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 296 | 552 | 668 |
CSS | 2 | 16 | 20 | 403 |
PHP | 2 | 39 | 19 | 117 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/icon.png | 3.38KB | 0.84KB | ▼ 75.17% |