Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.48ms] Passed 4 tests
Server-side resources used by NavThemes Gutenberg Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.94 ▼6.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.07 ▼2.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.65 ▲4.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.25 ▼2.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.08 ▲1.02 |
Server storage [IO: ▲10.70MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 266 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NavThemes Gutenberg Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.22 | 4.34 ▲2.44 | 44.22 ▼4.04 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.04 | 114.78 ▼0.90 | 43.76 ▼2.64 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 36.84 ▼0.49 | 35.57 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.23 ▲0.08 | 616.52 ▲16.84 | 53.09 ▲3.46 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.05 | 95.45 ▼6.51 | 41.43 ▼0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- 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
Please fix the following
- 95× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/admin/views/settings-addons.php:3
- > PHP Notice
Undefined variable: block in wp-content/plugins/navthemes-gutenberg-blocks/template-parts/block/view/content-about.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/navthemes-gutenberg-blocks/template-parts/block/view/content-heading.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/navthemes-gutenberg-blocks/template-parts/block/view/content-team.php:18
- > PHP Notice
Undefined variable: group_id in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/admin/views/html-location-group.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/fields/class-acf-field-separator.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/fields/class-acf-field-wysiwyg.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/upgrades.php:450
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/navthemes-gutenberg-blocks/admin/includes/fields/class-acf-field-password.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: blocks, gutenberg, comments, gutenberg-blocks
navthemes-gutenberg-blocks/navthemes-gtblocks.php 85% from 13 tests
"NavThemes Gutenberg Blocks" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("navthemes-gutenberg-blocks.php" instead of "navthemes-gtblocks.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected95,228 lines of code in 210 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 28 | 20,800 | 33,638 | 43,399 |
JavaScript | 18 | 7,283 | 7,402 | 23,548 |
PHP | 145 | 15,135 | 19,612 | 21,352 |
CSS | 17 | 269 | 945 | 6,775 |
JSON | 1 | 0 | 0 | 124 |
SVG | 1 | 18 | 0 | 30 |
PHP code Passed 2 tests
A brief analysis 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.36 |
Average class complexity | 14.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 114 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 114 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 794 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 794 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 399 | |
▷ Named functions | 398 | 99.75% |
▷ Anonymous functions | 1 | 0.25% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 compressed PNG files occupy 1.26MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |
admin/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
admin/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
admin/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
admin/assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |