Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.33ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.16 ▼4.54 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.62 ▼19.15 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.52 ▲5.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.58 ▼18.34 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.06 ▲0.73 |
Builder /wp-admin/plugins.php?page=plugin-builder | 3.25 | 34.53 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 14.11 ▼0.64 | 5.18 ▲3.44 | 39.58 ▼4.30 |
Dashboard /wp-admin | 2,214 ▲26 | 5.85 ▲0.95 | 112.11 ▼4.89 | 41.60 ▼4.31 |
Posts /wp-admin/edit.php | 2,100 ▲32 | 2.04 ▲0.01 | 40.18 ▲3.64 | 35.21 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.30 ▲5.66 | 645.34 ▼44.86 | 48.01 ▼13.14 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.20 ▼0.04 | 97.09 ▼2.37 | 41.96 ▼1.58 |
Builder /wp-admin/plugins.php?page=plugin-builder | 763 | 2.07 | 23.28 | 24.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/plugin-builder/cache/wordpress-plugin-boilerplate/plugin-name/trunk/public/partials/plugin-name-public-display.php
- > /wp-content/plugins/plugin-builder/public/partials/plugin-builder-public-display.php
- > /wp-content/plugins/plugin-builder/cache/wordpress-plugin-boilerplate/plugin-name/trunk/admin/partials/plugin-name-admin-display.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/plugin-builder/admin/partials/builder.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/custom-post-types.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/list.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Plugin_Builder_Include' not found in wp-content/plugins/plugin-builder/includes/include-classes/class-plugin-register.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Plugin_Builder_Include' not found in wp-content/plugins/plugin-builder/includes/include-classes/class-util-php.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/classes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/includes.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Plugin_Builder_Include' not found in wp-content/plugins/plugin-builder/includes/include-classes/class-wordpress-settings-framework.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/general-settings.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
3 plugin tags: plugin, development, boilerplate
plugin-builder/plugin-builder.php Passed 13 tests
The main PHP file in "Plugin Builder" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Build a plugin from the WordPress Plugin Boilerplate.
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
Everything looks great! No dangerous files found in this plugin3,364 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,050 | 2,491 | 3,187 |
Markdown | 2 | 48 | 0 | 67 |
JavaScript | 3 | 13 | 54 | 59 |
CSS | 3 | 0 | 8 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 58 | 30.53% |
▷ Public methods | 149 | 78.42% |
▷ Protected methods | 5 | 2.63% |
▷ Private methods | 36 | 18.95% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) cache/wordpress-plugin-boilerplate/plugin-name/assets/banner-772x250.png | 0.00KB | 0.00KB | 0.00% |
(invalid) cache/wordpress-plugin-boilerplate/plugin-name/assets/screenshot-1.png | 0.00KB | 0.00KB | 0.00% |
(invalid) cache/wordpress-plugin-boilerplate/plugin-name/assets/icon-256x256.png | 0.00KB | 0.00KB | 0.00% |