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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.38MB] [CPU: ▼12.89ms] Passed 4 tests
This is a short check of server-side resources used by PuppyFW
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.14 ▼3.49 |
Dashboard /wp-admin | 3.70 ▲0.39 | 52.58 ▲1.57 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 53.00 ▲7.62 |
Add New Post /wp-admin/post-new.php | 3.50 ▼2.39 | 40.66 ▼55.36 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 43.99 ▲5.72 |
Options pages /wp-admin/edit.php?post_type=puppyfw_page | 3.60 | 42.88 |
Add New /wp-admin/post-new.php?post_type=puppyfw_page | 3.68 | 48.12 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
PuppyFW: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.71 ▲0.16 | 1.73 ▼0.12 | 44.38 ▲0.51 |
Dashboard /wp-admin | 2,224 ▲44 | 5.63 ▼0.02 | 92.69 ▼6.60 | 41.29 ▼2.55 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.03 ▲0.01 | 40.78 ▲3.84 | 37.92 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 18.18 ▼5.48 | 607.14 ▼94.88 | 79.29 ▲9.80 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.17 ▼0.06 | 105.22 ▼10.68 | 45.32 ▼0.51 |
Options pages /wp-admin/edit.php?post_type=puppyfw_page | 1,105 | 1.99 | 30.64 | 32.98 |
Add New /wp-admin/post-new.php?post_type=puppyfw_page | 1,819 | 3.64 | 89.65 | 36.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Choice' not found in wp-content/plugins/puppyfw/src/Fields/Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Choice' not found in wp-content/plugins/puppyfw/src/Fields/CheckboxList.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/puppyfw/puppyfw.php:19
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Singleton' not found in wp-content/plugins/puppyfw/src/Framework.php:13
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Field' not found in wp-content/plugins/puppyfw/src/Fields/Input.php:13
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Field' not found in wp-content/plugins/puppyfw/src/Fields/Images.php:13
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Field' not found in wp-content/plugins/puppyfw/src/Fields/Tab.php:13
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Field' not found in wp-content/plugins/puppyfw/src/Fields/Editor.php:13
- > PHP Fatal error
Uncaught Error: Class 'PuppyFW\\Fields\\Field' not found in wp-content/plugins/puppyfw/src/Fields/Html.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/puppyfw/theme-loader.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=puppyfw_page
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyDuOALLadUZV06Yroa1SonBWh5coy-RNZc&libraries=places&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/post-new.php?post_type=puppyfw_page
- > Javascript (severe) in unknown
/wp-content/plugins/puppyfw/assets/js/builder-tools.js?ver=0.4.0 25:17 Uncaught ReferenceError: Clipboard is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Basic fields), #2 (WordPress fields), #3 (Advanced fields)
puppyfw/puppyfw.php 92% from 13 tests
Analyzing the main PHP file in "PuppyFW" version 0.4.4
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 223 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,646 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 714 | 1,263 | 2,560 |
JavaScript | 11 | 380 | 213 | 1,621 |
CSS | 4 | 66 | 8 | 356 |
Markdown | 2 | 31 | 0 | 109 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 28 | 18.18% |
▷ Public methods | 123 | 79.87% |
▷ Protected methods | 30 | 19.48% |
▷ Private methods | 1 | 0.65% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/lib/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/lib/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/lib/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/lib/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |