Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.95MB] [CPU: ▼38.71ms] Passed 4 tests
A check of server-side resources used by Law Firm Posts And Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▼0.44 | 16.07 ▼22.42 |
Dashboard /wp-admin | 3.07 ▼0.24 | 19.08 ▼33.66 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 19.80 ▼26.10 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 21.71 ▼72.66 |
Media Library /wp-admin/upload.php | 3.07 ▼0.17 | 20.83 ▼15.41 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=testimonials | 3.07 | 20.39 |
All Testimonials /wp-admin/edit.php?post_type=testimonials | 3.07 | 19.51 |
All Practice Areas /wp-admin/edit.php?post_type=practice-areas | 3.07 | 19.41 |
Categories /wp-admin/edit-tags.php?taxonomy=practice-areas-category&post_type=practice-areas | 3.07 | 19.30 |
Tags /wp-admin/edit-tags.php?taxonomy=testimonials-tag&post_type=testimonials | 3.07 | 17.65 |
Add New /wp-admin/post-new.php?post_type=practice-areas | 3.07 | 19.86 |
Add New /wp-admin/post-new.php?post_type=testimonials | 3.07 | 19.40 |
Tags /wp-admin/edit-tags.php?taxonomy=practice-areas-tag&post_type=practice-areas | 3.07 | 19.34 |
Server storage [IO: ▲7.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Law Firm Posts And Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,293 ▲547 | 25.02 ▲10.62 | 43.74 ▲41.86 | 36.26 ▼4.69 |
Dashboard /wp-admin | 2,366 ▲180 | 10.92 ▲5.03 | 144.08 ▲24.11 | 42.74 ▼1.37 |
Posts /wp-admin/edit.php | 2,275 ▲183 | 9.62 ▲7.58 | 87.14 ▲48.60 | 36.21 ▲2.57 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,732 | 18.96 ▼4.22 | 789.20 ▲118.86 | 40.50 ▼15.30 |
Media Library /wp-admin/upload.php | 1,568 ▲180 | 11.28 ▲7.10 | 159.97 ▲62.16 | 66.43 ▲23.86 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=testimonials | 1,448 | 9.21 | 66.44 | 26.67 |
All Testimonials /wp-admin/edit.php?post_type=testimonials | 2,560 | 9.66 | 87.34 | 34.23 |
All Practice Areas /wp-admin/edit.php?post_type=practice-areas | 2,557 | 9.60 | 77.03 | 31.71 |
Categories /wp-admin/edit-tags.php?taxonomy=practice-areas-category&post_type=practice-areas | 1,451 | 9.31 | 69.84 | 27.84 |
Tags /wp-admin/edit-tags.php?taxonomy=testimonials-tag&post_type=testimonials | 1,423 | 9.28 | 73.07 | 27.21 |
Add New /wp-admin/post-new.php?post_type=practice-areas | 6,229 | 20.23 | 836.26 | 36.02 |
Add New /wp-admin/post-new.php?post_type=testimonials | 1,574 | 16.86 | 734.37 | 33.72 |
Tags /wp-admin/edit-tags.php?taxonomy=practice-areas-tag&post_type=practice-areas | 1,423 | 9.33 | 76.30 | 25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/law-firm-blocks/guttenberg-blocks/banner/index.php+56
Undefined offset: 0
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 26 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=practice-areas-tag&post_type=practice-areas
- > Notice in wp-content/plugins/law-firm-blocks/guttenberg-blocks/banner/index.php+56
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonials
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP 50% from 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
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/law-firm-blocks/shortcodes/testimonials.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/law-firm-blocks/shortcodes/introduction.php:34
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/law-firm-blocks/starter-content.php on line 97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/law-firm-blocks/guttenberg-blocks/index.php:18
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/law-firm-blocks/starter-content.php on line 97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/law-firm-blocks/shortcodes/blog.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/law-firm-blocks/shortcodes/index.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/law-firm-blocks/shortcodes/3cta.php:75
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/law-firm-blocks/starter-content.php on line 97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/law-firm-blocks/shortcodes/logo-slider.php:53
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 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
No plugin tags provided
law-firm-blocks/post_and_blocks.php 92% from 13 tests
This is the main PHP file of "Law Firm Posts And Blocks" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("law-firm-blocks.php" instead of "post_and_blocks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,558 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 184 | 244 | 1,355 |
JavaScript | 8 | 77 | 55 | 986 |
CSS | 12 | 11 | 54 | 203 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 29 | |
▷ Named functions | 29 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
41 PNG files occupy 7.12MB with 4.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/phone-call.png | 0.96KB | 0.86KB | ▼ 10.16% |
guttenberg-blocks/3cta/img/img-2.png | 9.40KB | 2.92KB | ▼ 68.88% |
img/icon-2.png | 4.15KB | 2.64KB | ▼ 36.39% |
guttenberg-blocks/logo-slider/img/logo-img-2.png | 45.36KB | 7.21KB | ▼ 84.09% |
img/logo-img-2.png | 41.53KB | 7.21KB | ▼ 82.63% |