94% wp-floorplans

Code Review | WP-Floorplans

WordPress plugin WP-Floorplans scored 94% from 54 tests.

About plugin

  • Plugin page: wp-floorplans
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 5.8.1
  • First release: Sep 3, 2015
  • Latest release: Sep 4, 2015
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: acevans27 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,158 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1745.13 ▲17.40
Dashboard /wp-admin3.11 ▲0.0649.17 ▼5.67
Posts /wp-admin/edit.php3.16 ▲0.0650.79 ▲5.36
Add New Post /wp-admin/post-new.php5.47 ▲0.0395.31 ▼585.51
Media Library /wp-admin/upload.php3.05 ▲0.0538.55 ▲2.56
All Floor Plans /wp-admin/edit.php?post_type=wpfloorplans3.1041.76
Highlights /wp-admin/edit-tags.php?taxonomy=highlights&post_type=wpfloorplans3.0536.56
Add New /wp-admin/post-new.php?post_type=wpfloorplans3.1861.54
Communities /wp-admin/edit-tags.php?taxonomy=community&post_type=wpfloorplans3.0546.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▲15815.83 ▲0.329.79 ▼2.2351.68 ▼4.82
Dashboard /wp-admin3,015 ▲815.91 ▼0.12151.34 ▲3.56122.38 ▼4.82
Posts /wp-admin/edit.php2,784 ▲452.85 ▲0.1372.84 ▲3.6395.90 ▼7.69
Add New Post /wp-admin/post-new.php1,527 ▼34518.78 ▼0.32385.12 ▼21.32112.73 ▼7.64
Media Library /wp-admin/upload.php1,855 ▲455.04 ▼0.01155.34 ▼2.76128.40 ▼1.27
All Floor Plans /wp-admin/edit.php?post_type=wpfloorplans1,4752.7768.4187.56
Highlights /wp-admin/edit-tags.php?taxonomy=highlights&post_type=wpfloorplans1,7532.5366.3689.40
Add New /wp-admin/post-new.php?post_type=wpfloorplans4,52512.82340.87235.27
Communities /wp-admin/edit-tags.php?taxonomy=community&post_type=wpfloorplans1,7842.5375.2194.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP516380616
Sass360108
CSS1001

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 code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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