84% fake-login-area

Code Review | Fake Login Area

WordPress plugin Fake Login Area scored84%from 54 tests.

About plugin

  • Plugin page: fake-login-area
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.7
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Dec 8, 2016
  • Number of updates: 4
  • Update frequency: every 144.5 days
  • Top authors: dmchale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.22ms] Passed 4 tests

Server-side resources used by Fake Login Area
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.93 ▼6.66
Dashboard /wp-admin3.32 ▲0.0143.60 ▼5.73
Posts /wp-admin/edit.php3.37 ▲0.0147.87 ▼0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.57 ▼7.67
Media Library /wp-admin/upload.php3.24 ▲0.0137.37 ▲3.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Fake Login Area
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.98 ▼0.326.59 ▲4.5039.88 ▼5.75
Dashboard /wp-admin2,206 ▲215.90 ▲1.00110.07 ▼9.1543.36 ▼4.21
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0639.44 ▲3.8934.85 ▲2.59
Add New Post /wp-admin/post-new.php1,544 ▲2523.11 ▼0.31673.84 ▼16.3052.37 ▼1.42
Media Library /wp-admin/upload.php1,382 ▼34.30 ▲0.0998.06 ▼1.3642.10 ▼1.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fake-login-area/fake-login-area.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: user login, login, users, login area

fake-login-area/fake-login-area.php Passed 13 tests

Analyzing the main PHP file in "Fake Login Area" version 1.05
50 characters long description:
Display a login form to a nonexistent private area

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected902 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS26918848
JavaScript26129
PHP231025

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected