10% fifthsegment-whitelist

Code Review | Whitelist

WordPress plugin Whitelist scored 10% from 54 tests.

About plugin

  • Plugin page: fifthsegment-whit...
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 5.8.1
  • First release: Aug 27, 2015
  • Latest release: Jan 5, 2017
  • Number of updates: 35
  • Update frequency: every 14.2 days
  • Top authors: fifthsegment (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,744 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/fifthsegment-whitelist/includes/class-wordpress-plugin-template.php+883
    Undefined variable: charset_collate

Server metrics [RAM: ▲0.32MB] [CPU: ▼145.12ms] Passed 4 tests

Analyzing server-side resources used by Whitelist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.11 ▲0.3936.29 ▲10.90
Dashboard /wp-admin3.41 ▲0.3546.83 ▼2.98
Posts /wp-admin/edit.php3.46 ▲0.3545.80 ▼1.64
Add New Post /wp-admin/post-new.php5.70 ▲0.2789.15 ▼577.91
Media Library /wp-admin/upload.php3.29 ▲0.2933.51 ▲2.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 2 new tables, 3 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whitelist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲7016.15 ▲0.6311.67 ▲0.5146.40 ▼1.01
Dashboard /wp-admin2,939 ▲85.91 ▼0.23147.17 ▼30.52111.89 ▲3.33
Posts /wp-admin/edit.php2,715 ▼242.70 ▼0.0280.16 ▲14.8885.85 ▲0.22
Add New Post /wp-admin/post-new.php1,601 ▼8221.34 ▲2.56287.87 ▼161.63105.03 ▼5.91
Media Library /wp-admin/upload.php1,776 ▼314.98 ▼0.02167.90 ▲3.95118.47 ▲1.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_authusers
    • wp_authusers_pending
  • The uninstall procedure has failed, leaving 3 options in the database
    • wpt_generate_sec
    • wpt_text_field_roadblockmessage
    • wordpress_plugin_template_version

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: only, wordpress, roadblock, email whitelist, plugin...

fifthsegment-whitelist/wordpress-plugin-template.php 92% from 13 tests

The main PHP script in "Whitelist" version 3.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("fifthsegment-whitelist.php" instead of "wordpress-plugin-template.php")

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
Everything looks great! No dangerous files found in this plugin1,950 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity32.50
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods22.78%
▷ Public methods6995.83%
▷ Protected methods00.00%
▷ Private methods34.17%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/lib/simple-php-captcha/backgrounds/polyester-lite.png1.03KB0.16KB▼ 84.86%
includes/lib/simple-php-captcha/backgrounds/white-wave.png1.25KB0.42KB▼ 66.59%
includes/lib/simple-php-captcha/backgrounds/stitched-wool.png1.05KB0.21KB▼ 80.21%
includes/lib/simple-php-captcha/backgrounds/grey-sandbag.png5.89KB5.09KB▼ 13.53%
includes/lib/simple-php-captcha/backgrounds/white-carbon.png1.04KB0.18KB▼ 83.18%