Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.76ms] Passed 4 tests
This is a short check of server-side resources used by Flora@home plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.14 ▼5.27 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.61 ▼7.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.59 ▼9.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.08 ▼5.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.87 ▼0.57 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Flora@home plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.39 ▼0.98 | 1.69 ▼0.31 | 40.24 ▼4.57 |
Dashboard /wp-admin | 2,203 ▲15 | 5.91 ▲0.10 | 108.70 ▼6.67 | 39.59 ▼7.48 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.97 ▼0.06 | 39.26 ▲3.16 | 35.92 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.16 ▲0.07 | 608.16 ▼26.93 | 53.46 ▼10.34 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.05 | 96.99 ▲3.73 | 42.47 ▲1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/florahome/admin/partials/florahome-admin-display.php:317
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/florahome/admin/partials/florahome-admin-errors.php:90
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/florahome/admin/partials/florahome-import-image.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/florahome/admin/partials/florahome-product-import.php:774
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/florahome/admin/partials/florahome-import-image.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/florahome/uninstall.php:13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/florahome/admin/partials/florahome-import-image.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/florahome/admin/partials/florahome-order-screen.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/florahome/public/partials/florahome-public-display.php:74
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== florahome ===
)
florahome/florahome.php Passed 13 tests
The main file in "Flora@home plugin" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
18 characters long description:
www.floraathome.nl
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
There were no executable files found in this plugin2,173 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,127 | 601 | 1,997 |
JavaScript | 2 | 14 | 7 | 86 |
PO File | 4 | 4 | 4 | 64 |
CSS | 1 | 7 | 3 | 24 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 5.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 4 | 9.30% |
▷ Public methods | 36 | 83.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 16.28% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin