88% white-page-publication

Code Review | WhitePage

WordPress plugin WhitePage scored 88% from 54 tests.

About plugin

  • Plugin page: white-page-public...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 5.8.1
  • First release: Jan 13, 2020
  • Latest release: Aug 17, 2021
  • Number of updates: 35
  • Update frequency: every 17.1 days
  • Top authors: zakstan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 7,646 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.58MB] [CPU: ▼163.27ms] Passed 4 tests

Server-side resources used by WhitePage
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0633.10 ▼5.08
Dashboard /wp-admin3.12 ▲0.0736.42 ▼4.81
Posts /wp-admin/edit.php3.17 ▲0.0744.47 ▼3.28
Add New Post /wp-admin/post-new.php2.90 ▼2.5329.16 ▼639.89
Media Library /wp-admin/upload.php3.06 ▲0.0637.64 ▲1.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, no new options
New tables
wp_whitepage

Browser metrics Passed 4 tests

A check of browser resources used by WhitePage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲12716.12 ▲0.197.88 ▼1.7250.87 ▼1.83
Dashboard /wp-admin2,990 ▲595.83 ▼0.32152.49 ▲0.58116.44 ▲6.27
Posts /wp-admin/edit.php2,759 ▲202.68 ▼0.0271.30 ▼2.46100.37 ▲1.52
Add New Post /wp-admin/post-new.php1,696 ▲10218.81 ▲0.02410.91 ▲11.83116.79 ▼2.84
Media Library /wp-admin/upload.php1,827 ▲234.99 ▼0.06149.32 ▼5.00124.20 ▼1.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/white-page-publication/whitepage.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/white-page-publication/params_api_form.php:4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/white-page-publication/params_api_form.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • License: Not defined
  • Screenshots: Please add an image for screenshot #1 (Setting on single site installation)
You can look at the official readme.txt

white-page-publication/whitepage.php 92% from 13 tests

Analyzing the main PHP file in "WhitePage" version 1.1.5
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("white-page-publication.php" instead of "whitepage.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin388 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28639388

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin