90% f4-simple-whitelabel

Code Review | F4 Simple White Label

WordPress plugin F4 Simple White Label scored90%from 54 tests.

About plugin

  • Plugin page: f4-simple-whitelabel
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Nov 24, 2022
  • Number of updates: 15
  • Update frequency: every 73.7 days
  • Top authors: faktorvier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,839 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.59ms] Passed 4 tests

This is a short check of server-side resources used by F4 Simple White Label
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.11 ▼2.98
Dashboard /wp-admin3.32 ▲0.0250.02 ▼3.54
Posts /wp-admin/edit.php3.37 ▲0.0150.07 ▼10.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.80 ▼5.34
Media Library /wp-admin/upload.php3.24 ▲0.0238.14 ▼0.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for F4 Simple White Label
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.48 ▲0.081.93 ▲0.2042.68 ▲1.74
Dashboard /wp-admin2,195 ▲245.59 ▲0.0386.38 ▼3.8239.97 ▼6.57
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0834.64 ▼7.0134.71 ▼1.90
Add New Post /wp-admin/post-new.php1,550 ▲2423.36 ▲5.95638.34 ▲15.4355.95 ▼1.12
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0197.17 ▼13.0943.21 ▼6.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

f4-simple-whitelabel/f4-simple-whitelabel.php Passed 13 tests

The entry point to "F4 Simple White Label" version 1.0.10 is a PHP file that has certain tags in its header comment area
78 characters long description:
Allows you to to change the login image, admin bar logo and admin footer text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected251 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP586253251

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods24100.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin