89% frontend-as-any-user

Code Review | Frontend As Any User

WordPress plugin Frontend As Any User scored89%from 54 tests.

About plugin

  • Plugin page: frontend-as-any-user
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 25, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 21
  • Update frequency: every 29.7 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Frontend As Any User
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0633.05 ▼8.02
Dashboard /wp-admin3.31 ▲0.0148.12 ▲0.77
Posts /wp-admin/edit.php3.36 ▲0.0046.59 ▼5.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.30 ▼23.42
Media Library /wp-admin/upload.php3.23 ▲0.0033.11 ▲0.58

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

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

Browser metrics Passed 4 tests

Frontend As Any User: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,620 ▼13713.64 ▼0.711.17 ▼1.0841.13 ▼10.02
Dashboard /wp-admin2,206 ▲244.88 ▼0.02103.45 ▲3.0239.18 ▼6.24
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0140.62 ▼6.1335.78 ▼0.68
Add New Post /wp-admin/post-new.php1,542 ▲2818.51 ▲0.95647.44 ▲18.3551.22 ▼8.14
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0494.38 ▼6.8241.35 ▼1.57

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
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Incognito mode enabled), #2 (Incognito mode disabled)
  • Donate link: Invalid url: ""
  • Donate link: Invalid url: "buymeacoffee.com/josem"
Please take inspiration from this readme.txt

frontend-as-any-user/frontend-as-any-user.php 92% from 13 tests

"Frontend As Any User" version 0.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
There were no executable files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111831

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code4.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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin