84% floating-login

Code Review | Floating Login

WordPress plugin Floating Login scored84%from 54 tests.

About plugin

  • Plugin page: floating-login
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 22, 2014
  • Latest release: May 7, 2015
  • Number of updates: 54
  • Update frequency: every 6.5 days
  • Top authors: fozzyluke123 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active /9,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼19.57ms] Passed 4 tests

Server-side resources used by Floating Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0747.54 ▲1.71
Dashboard /wp-admin3.37 ▲0.0750.88 ▼5.14
Posts /wp-admin/edit.php3.42 ▲0.0645.21 ▼8.44
Add New Post /wp-admin/post-new.php3.15 ▼2.7337.23 ▼63.35
Media Library /wp-admin/upload.php3.29 ▲0.0636.11 ▼1.33
Floating Login Settings /wp-admin/options-general.php?page=floating-login/admin-page.php3.2638.47

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

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

Browser metrics Passed 4 tests

Floating Login: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10814.82 ▲0.512.23 ▲0.4251.22 ▲3.14
Dashboard /wp-admin2,222 ▲225.76 ▼0.14108.86 ▼2.9644.28 ▲1.50
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0234.88 ▼4.4736.10 ▲0.40
Add New Post /wp-admin/post-new.php6,239 ▲4,69425.83 ▲2.57870.97 ▲170.7555.25 ▲6.47
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.03106.64 ▼0.7344.38 ▼0.18
Floating Login Settings /wp-admin/options-general.php?page=floating-login/admin-page.php1,5252.9357.5527.42

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-login/admin-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-login/admin-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 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: logout, box, login, floating, register

floating-login/floating-login.php Passed 13 tests

The entry point to "Floating Login" version 1.2.2 is a PHP file that has certain tags in its header comment area
42 characters long description:
Displays a login/register floating element

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin377 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22028296
CSS10346
JavaScript11135

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.71
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected