Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.83ms] Passed 4 tests
Analyzing server-side resources used by Fancy Product Designer REST API
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.28 ▼3.09 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.12 ▼0.06 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.79 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.01 ▼12.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.84 ▲0.80 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Fancy Product Designer REST API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.28 ▼1.00 | 1.91 ▼0.15 | 40.36 ▼2.67 |
Dashboard /wp-admin | 2,220 ▲29 | 4.85 ▼0.05 | 115.62 ▲6.12 | 39.36 ▼6.69 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.13 ▲0.10 | 41.58 ▼5.05 | 37.48 ▲3.06 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 23.19 ▲5.67 | 643.83 ▼85.42 | 54.20 ▼0.00 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.26 ▲0.05 | 98.34 ▼14.43 | 42.07 ▼5.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-designs.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-options.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-ui-layouts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-orders.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-pricing-rules.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fancy-product-designer-rest-api/class-rest-routes.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-products.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-product-designer-rest-api/fancy-product-designer-rest-api.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-views.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/fancy-product-designer-rest-api/routes/class-route-templates.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in fancy-product-designer-rest-api/assets to your readme.txt
fancy-product-designer-rest-api/fancy-product-designer-rest-api.php Passed 13 tests
The entry point to "Fancy Product Designer REST API" version 1.6.4 is a PHP file that has certain tags in its header comment area
69 characters long description:
A REST-API Implementation to use with Fancy Product Designer - Admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,149 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 372 | 34 | 1,149 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.10 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 1 | 1.75% |
▷ Public methods | 56 | 98.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.75% |
Functions | 87 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 87 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
There were not PNG files found in your plugin