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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▼0.25ms] Passed 4 tests
An overview of server-side resources used by Blaize Companion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 41.97 ▼3.35 |
Dashboard /wp-admin | 3.85 ▲0.55 | 56.49 ▲3.75 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 55.65 ▲0.94 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 99.34 ▼2.32 |
Media Library /wp-admin/upload.php | 3.77 ▲0.55 | 40.99 ▲4.75 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.82 | 41.89 |
Add New /wp-admin/post-new.php?post_type=team | 3.90 | 52.11 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 3.77 | 59.83 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.91 | 55.18 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.90 | 54.23 |
All Items /wp-admin/edit.php?post_type=portfolio | 3.82 | 37.26 |
All Teams /wp-admin/edit.php?post_type=team | 3.82 | 35.66 |
Server storage [IO: ▲3.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Blaize Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲150 | 13.15 ▼1.22 | 1.73 ▼0.38 | 43.12 ▼0.59 |
Dashboard /wp-admin | 2,290 ▲102 | 5.81 ▼0.07 | 95.42 ▼5.95 | 41.69 ▼1.03 |
Posts /wp-admin/edit.php | 2,176 ▲87 | 2.00 ▼0.05 | 39.24 ▼0.70 | 34.38 ▼5.10 |
Add New Post /wp-admin/post-new.php | 1,588 ▲74 | 23.39 ▲5.85 | 667.55 ▼33.11 | 55.06 ▼5.52 |
Media Library /wp-admin/upload.php | 1,472 ▲81 | 4.19 ▼0.03 | 100.28 ▼3.30 | 48.60 ▲4.33 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,140 | 2.00 | 31.13 | 29.64 |
Add New /wp-admin/post-new.php?post_type=team | 2,329 | 7.71 | 171.42 | 66.47 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio | 1,349 | 2.14 | 30.80 | 36.19 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,335 | 7.59 | 167.35 | 55.66 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,284 | 7.71 | 165.87 | 57.89 |
All Items /wp-admin/edit.php?post_type=portfolio | 1,157 | 1.95 | 30.79 | 31.19 |
All Teams /wp-admin/edit.php?post_type=team | 1,140 | 1.99 | 30.26 | 27.81 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/blaize-companion/blaize-companion.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant BLAIZE_COMPANION_PATH - assumed 'BLAIZE_COMPANION_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blaize-companion/customizer/customizer-tabs/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/blaize-companion/post-types/team-post-type.php:3
- > PHP Warning
require(BLAIZE_COMPANION_PATHcustomizer/customizer-tabs/tab-class.php): failed to open stream: No such file or directory in wp-content/plugins/blaize-companion/customizer/customizer-tabs/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaize-companion/customizer/customizer-tabs/customizer.php:347
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/blaize-companion/post-types/portfolio-post-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaize-companion/customizer/customizer.php:5
- > PHP Fatal error
require(): Failed opening required 'BLAIZE_COMPANION_PATHcustomizer/customizer-tabs/tab-class.php' (include_path='.:/usr/share/php') in wp-content/plugins/blaize-companion/customizer/customizer-tabs/init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/blaize-companion/post-types/testimonial-post-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaize-companion/customizer/blaize-customizer.php:19
- > PHP Warning
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: custom post type, customizer options
blaize-companion/blaize-companion.php 92% from 13 tests
The main file in "Blaize Companion" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages/")
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 plugin15,656 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 3,077 | 78 | 7,686 |
SVG | 4 | 0 | 0 | 5,141 |
PHP | 12 | 400 | 455 | 2,542 |
JavaScript | 3 | 77 | 53 | 287 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 3 | 10.71% |
▷ Private methods | 1 | 3.57% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
customizer/assets/images/header1.png | 5.16KB | 2.59KB | ▼ 49.70% |
customizer/assets/images/header2.png | 5.28KB | 2.61KB | ▼ 50.55% |
customizer/assets/images/green.png | 0.93KB | 0.08KB | ▼ 90.99% |
customizer/assets/images/deep-orange.png | 0.93KB | 0.08KB | ▼ 90.99% |
customizer/assets/images/teal.png | 0.93KB | 0.08KB | ▼ 90.99% |