83% fluistr-authentication

Code Review | Fluistr Authentication

WordPress plugin Fluistr Authentication scored83%from 54 tests.

About plugin

  • Plugin page: fluistr-authentic...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Mar 9, 2021
  • Latest release: May 25, 2022
  • Number of updates: 5
  • Update frequency: every 88.4 days
  • Top authors: Virgial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.98ms] Passed 4 tests

An overview of server-side resources used by Fluistr Authentication
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.96 ▼5.34
Dashboard /wp-admin3.42 ▲0.1250.01 ▼7.59
Posts /wp-admin/edit.php3.53 ▲0.1851.85 ▼4.45
Add New Post /wp-admin/post-new.php6.00 ▲0.11102.84 ▼2.55
Media Library /wp-admin/upload.php3.34 ▲0.1139.77 ▲2.94
Fluistr /wp-admin/admin.php?page=wpfluistr-settings3.3547.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
wp_fluistr

Browser metrics Passed 4 tests

An overview of browser requirements for Fluistr Authentication
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.35 ▲0.031.63 ▼0.0343.18 ▲1.99
Dashboard /wp-admin2,245 ▲685.58 ▼0.0984.96 ▼4.8576.57 ▲36.84
Posts /wp-admin/edit.php2,165 ▲831.99 ▼0.0141.96 ▲5.7935.39 ▲0.24
Add New Post /wp-admin/post-new.php1,574 ▲4623.07 ▲0.07642.29 ▼24.38106.42 ▲54.94
Media Library /wp-admin/upload.php1,462 ▲624.11 ▼0.10100.38 ▲3.4468.18 ▲25.34
Fluistr /wp-admin/admin.php?page=wpfluistr-settings1,1912.1029.3941.33
Settings /wp-admin/admin.php?page=wpfluistr-settings§ion=settings#settings1,1882.1830.4538.09
Dashboard /wp-admin/admin.php?page=wpfluistr-settings§ion=settings#dashboard1,1882.2328.9538.67
Extra /wp-admin/admin.php?page=wpfluistr-settings§ion=settings#extra1,1972.1827.4938.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fluistr-authentication/modules/fluistr-settings/views/get-pro-box.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Dasboard plugin), #2 (Settings plugin), #3 (Users overview plugin), #4 (Login screen), #5 (Login confirmation screen)
The official readme.txt is a good inspiration

fluistr-authentication/fluistr-authentication.php 85% from 13 tests

Analyzing the main PHP file in "Fluistr Authentication" version 1.0.1
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,687 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP285427642,302
PO File17996254
SVG80087
HTML30038
CSS3333
JavaScript3023

PHP code Passed 2 tests

An short overview of 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.41
Average class complexity32.62
▷ Minimum class complexity3.00
▷ Maximum class complexity137.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods100
▷ Static methods2121.00%
▷ Public methods8989.00%
▷ Protected methods66.00%
▷ Private methods55.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.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
11 PNG files occupy 1.64MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/fluistr-settings/assets/dashboard-support.png27.18KB11.20KB▼ 58.80%
modules/fluistr-login/assets/images/button-playstore.png11.21KB4.74KB▼ 57.71%
modules/fluistr-login/assets/images/button-appstore.png9.39KB4.89KB▼ 47.93%
modules/fluistr-settings/assets/Google-Playstore.png6.21KB2.99KB▼ 51.88%
screenshot-3.png233.72KB74.36KB▼ 68.18%