Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲1.21ms] Passed 4 tests
An overview of server-side resources used by Floorplans - Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 45.99 ▲4.82 |
Dashboard /wp-admin | 3.80 ▲0.49 | 55.31 ▲3.31 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 52.34 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 92.96 ▼2.67 |
Media Library /wp-admin/upload.php | 3.66 ▲0.42 | 40.82 ▲5.66 |
Settings /wp-admin/edit.php?post_type=floorplan&page=floorplans-settings | 3.64 | 39.50 |
All Floorplans /wp-admin/edit.php?post_type=floorplan | 3.79 | 37.76 |
Add New /wp-admin/post-new.php?post_type=floorplan | 6.36 | 88.78 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
floorplans |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Floorplans - Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.72 ▲0.38 | 1.78 ▲0.05 | 43.98 ▲1.15 |
Dashboard /wp-admin | 2,229 ▲54 | 5.62 ▼0.09 | 88.94 ▼25.41 | 39.98 ▼4.65 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.03 ▲0.09 | 36.80 ▼2.60 | 32.31 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.21 ▲0.08 | 691.82 ▲67.34 | 54.34 ▲1.40 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.22 ▲0.06 | 99.41 ▲0.48 | 41.18 ▼0.64 |
Settings /wp-admin/edit.php?post_type=floorplan&page=floorplans-settings | 868 | 2.01 | 28.55 | 50.78 |
All Floorplans /wp-admin/edit.php?post_type=floorplan | 1,116 | 2.02 | 35.88 | 35.54 |
Add New /wp-admin/post-new.php?post_type=floorplan | 6,196 | 24.93 | 889.54 | 33.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- floorplans
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/floorplans-lite/public/js/floorplans-lite-js.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/floorplans-lite/floorplans.php:19
- > PHP Fatal error
Uncaught Error: Class 'Floorplans_Post' not found in wp-content/plugins/floorplans-lite/includes/class-data.php:3
- > PHP Fatal error
Uncaught Error: Class 'Floorplans_Shortcode' not found in wp-content/plugins/floorplans-lite/includes/class-view.php:11
- > PHP Fatal error
Uncaught Error: Class 'Floorplans_Vars' not found in wp-content/plugins/floorplans-lite/includes/class-settings.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: floor, gutenberg, floorplan, plan, form
floorplans-lite/floorplans.php 92% from 13 tests
The main PHP script in "Floorplans - Lite" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("floorplans-lite.php" instead of "floorplans.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,745 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,303 | 481 | 4,613 |
PHP | 21 | 714 | 189 | 1,686 |
CSS | 4 | 308 | 62 | 1,374 |
PO File | 2 | 312 | 672 | 799 |
SVG | 1 | 16 | 0 | 159 |
JSON | 2 | 4 | 0 | 114 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 10 | 11.76% |
▷ Public methods | 74 | 87.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 12.94% |
Functions | 21 | |
▷ Named functions | 3 | 14.29% |
▷ Anonymous functions | 18 | 85.71% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/logo.png | 4.07KB | 2.33KB | ▼ 42.67% |