Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼145.82ms] Passed 4 tests
Server-side resources used by WP-Floorplans
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 45.13 ▲17.40 |
Dashboard /wp-admin | 3.11 ▲0.06 | 49.17 ▼5.67 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 50.79 ▲5.36 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 95.31 ▼585.51 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 38.55 ▲2.56 |
All Floor Plans /wp-admin/edit.php?post_type=wpfloorplans | 3.10 | 41.76 |
Highlights /wp-admin/edit-tags.php?taxonomy=highlights&post_type=wpfloorplans | 3.05 | 36.56 |
Add New /wp-admin/post-new.php?post_type=wpfloorplans | 3.18 | 61.54 |
Communities /wp-admin/edit-tags.php?taxonomy=community&post_type=wpfloorplans | 3.05 | 46.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP-Floorplans: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,754 ▲158 | 15.83 ▲0.32 | 9.79 ▼2.23 | 51.68 ▼4.82 |
Dashboard /wp-admin | 3,015 ▲81 | 5.91 ▼0.12 | 151.34 ▲3.56 | 122.38 ▼4.82 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.85 ▲0.13 | 72.84 ▲3.63 | 95.90 ▼7.69 |
Add New Post /wp-admin/post-new.php | 1,527 ▼345 | 18.78 ▼0.32 | 385.12 ▼21.32 | 112.73 ▼7.64 |
Media Library /wp-admin/upload.php | 1,855 ▲45 | 5.04 ▼0.01 | 155.34 ▼2.76 | 128.40 ▼1.27 |
All Floor Plans /wp-admin/edit.php?post_type=wpfloorplans | 1,475 | 2.77 | 68.41 | 87.56 |
Highlights /wp-admin/edit-tags.php?taxonomy=highlights&post_type=wpfloorplans | 1,753 | 2.53 | 66.36 | 89.40 |
Add New /wp-admin/post-new.php?post_type=wpfloorplans | 4,525 | 12.82 | 340.87 | 235.27 |
Communities /wp-admin/edit-tags.php?taxonomy=community&post_type=wpfloorplans | 1,784 | 2.53 | 75.21 | 94.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-floorplans/templates/archive-wpfloorplans.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-floorplans/wp-floorplans.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-floorplans/templates/single-wpfloorplans.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-floorplans/templates/taxonomy-wpfloorplans.php:1
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: floorplans, house plans, floor plans
wp-floorplans/wp-floorplans.php 92% from 13 tests
Analyzing the main PHP file in "WP-Floorplans" version 1.0.0
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin725 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 80 | 616 |
Sass | 3 | 6 | 0 | 108 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected