83% quick-floor-planner

Code Review | Free Quick Floor Planner

WordPress plugin Free Quick Floor Planner scored83%from 54 tests.

About plugin

  • Plugin page: quick-floor-planner
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Jun 30, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: etoriello (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /884 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.00ms] Passed 4 tests

Analyzing server-side resources used by Free Quick Floor Planner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.22 ▼0.06
Dashboard /wp-admin3.32 ▼0.0346.32 ▼17.32
Posts /wp-admin/edit.php3.37 ▲0.0145.60 ▲1.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.89 ▼7.77
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▲2.13

Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Quick Floor Planner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14715.20 ▲0.8925.38 ▲23.6166.39 ▲23.85
Dashboard /wp-admin2,206 ▲185.83 ▲0.7994.62 ▼24.0938.09 ▼4.77
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0034.67 ▼3.6931.93 ▼2.17
Add New Post /wp-admin/post-new.php1,542 ▲2818.05 ▲0.55600.33 ▼55.3766.27 ▲12.53
Media Library /wp-admin/upload.php1,385 ▼64.18 ▲0.0193.31 ▼3.0442.90 ▲0.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-floor-planner/quick-floor-planner.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

quick-floor-planner/quick-floor-planner.php 92% from 13 tests

The main PHP file in "Free Quick Floor Planner" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin91 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS112046
PHP16843
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.60MB with 0.41MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/quick-floor-plan2.png126.42KB35.92KB▼ 71.59%
assets/qfp-screenshot-interface2.png140.44KB58.56KB▼ 58.30%
assets/qfp-screenshot-backoffice.png348.27KB92.79KB▼ 73.36%