Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.58MB] [CPU: ▲29.67ms] 50% from 4 tests
Server-side resources used by FloraPress - Your Garden on WordPress
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,136.43ms on /wp-admin/admin.php?page=florapress-options)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.58MB on /wp-admin/edit.php?post_type=plant-profile)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.30 ▲5.83 | 75.36 ▲34.07 |
Dashboard /wp-admin | 9.32 ▲6.01 | 75.46 ▲23.19 |
Posts /wp-admin/edit.php | 9.32 ▲5.96 | 91.30 ▲37.75 |
Add New Post /wp-admin/post-new.php | 10.40 ▲4.51 | 121.07 ▲27.30 |
Media Library /wp-admin/upload.php | 9.32 ▲6.09 | 71.54 ▲34.10 |
Year or Season /wp-admin/edit-tags.php?taxonomy=season&post_type=planting-profile | 9.38 | 76.97 |
Planting Plans /wp-admin/edit.php?post_type=planting-profile | 9.32 | 66.11 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.32 | 65.17 |
Options /wp-admin/admin.php?page=florapress-options | 9.32 | 2,136.43 |
Used For /wp-admin/edit-tags.php?taxonomy=used-for&post_type=plot-profile | 9.38 | 65.30 |
Plot Profiles /wp-admin/edit.php?post_type=plot-profile | 9.32 | 69.69 |
Theme /wp-admin/edit-tags.php?taxonomy=theme&post_type=bed | 9.38 | 63.29 |
Types /wp-admin/edit-tags.php?taxonomy=type&post_type=plant-profile | 9.38 | 71.61 |
Plant Profiles /wp-admin/edit.php?post_type=plant-profile | 9.32 | 65.12 |
Server storage [IO: ▲3.56MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 214 new files
Database: no new tables, 10 new options
New WordPress options |
---|
type_children |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
fs_active_plugins |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by FloraPress - Your Garden on WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲251 | 13.92 ▼0.65 | 8.83 ▲7.11 | 29.97 ▼16.59 |
Dashboard /wp-admin | 2,301 ▲129 | 5.72 ▲0.10 | 97.58 ▼7.60 | 45.19 ▼0.48 |
Posts /wp-admin/edit.php | 2,211 ▲111 | 2.22 ▲0.18 | 40.88 ▲5.74 | 37.14 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,602 ▲76 | 23.16 ▲0.06 | 663.74 ▼61.12 | 51.41 ▼3.45 |
Media Library /wp-admin/upload.php | 1,497 ▲97 | 4.26 ▲0.08 | 97.20 ▼13.43 | 45.72 ▼2.96 |
Year or Season /wp-admin/edit-tags.php?taxonomy=season&post_type=planting-profile | 1,380 | 2.02 | 30.45 | 33.75 |
Planting Plans /wp-admin/edit.php?post_type=planting-profile | 1,209 | 2.04 | 35.78 | 32.54 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,158 | 1.88 | 29.40 | 28.28 |
Options /wp-admin/admin.php?page=florapress-options | 1,069 | 1.71 | 26.97 | 61.52 |
Used For /wp-admin/edit-tags.php?taxonomy=used-for&post_type=plot-profile | 1,380 | 2.01 | 30.59 | 29.86 |
Plot Profiles /wp-admin/edit.php?post_type=plot-profile | 1,225 | 2.17 | 35.00 | 30.19 |
Theme /wp-admin/edit-tags.php?taxonomy=theme&post_type=bed | 1,376 | 2.05 | 29.88 | 30.92 |
Types /wp-admin/edit-tags.php?taxonomy=type&post_type=plant-profile | 2,227 | 2.03 | 31.06 | 38.50 |
Plant Profiles /wp-admin/edit.php?post_type=plant-profile | 1,337 | 2.19 | 37.49 | 33.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/florapress/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- type_children
- fs_active_plugins
- fs_accounts
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- fs_debug_mode
Smoke tests 25% 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)
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/florapress/admin/partials/florapress-admin-display.php
- > /wp-content/plugins/florapress/public/partials/florapress-public-display.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/florapress/admin/partials/planting-profile-meta-box.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/florapress/admin/partials/bed-meta-box.php:3
- > PHP Notice
Undefined variable: content_ext in wp-content/plugins/florapress/public/partials/planting-profile-meta-box.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/florapress/admin/partials/plot-profile-meta-box.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/florapress/public/partials/planting-profile-meta-box.php:51
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/florapress/public/partials/planting-profile-meta-box.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/florapress/public/partials/plot-profile-meta-box.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/florapress/public/partials/plant-profile-meta-box.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/florapress/admin/partials/planting-profile-plot-meta-box.php:11
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/florapress/public/partials/plot-profile-meta-box.php on line 15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plant-profile
- > Javascript (severe) in unknown
/wp-content/plugins/florapress/admin/js/florapress-admin.js?ver=1.0.8 10:14 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires at least: Version format is invalid
florapress/florapress.php Passed 13 tests
The principal PHP file in "FloraPress - Your Garden on WordPress" v. 1.0.8 is loaded by WordPress automatically on each request
65 characters long description:
Easily manage plant and garden information on your WordPress blog
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin39,791 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,824 | 17,992 | 39,134 |
JavaScript | 5 | 95 | 86 | 396 |
CSS | 16 | 56 | 17 | 261 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 508)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.76 |
Average class complexity | 89.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 508.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,344 | |
▷ Static methods | 201 | 14.96% |
▷ Public methods | 939 | 69.87% |
▷ Protected methods | 17 | 1.26% |
▷ Private methods | 388 | 28.87% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
admin/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
admin/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |