10% shokola-custom-white-label

Code Review | Shokola Custom and White Label

WordPress plugin Shokola Custom and White Label scored10%from 54 tests.

About plugin

  • Plugin page: shokola-custom-wh...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.2-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 30, 2016
  • Latest release: Mar 8, 2018
  • Number of updates: 37
  • Update frequency: every 14.2 days
  • Top authors: shokola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,101 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Shokola_Custom_WhiteLabel::my_plugin_activate() should not be called statically

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.35ms] Passed 4 tests

An overview of server-side resources used by Shokola Custom and White Label
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.05 ▲1.56
Dashboard /wp-admin3.36 ▲0.0153.29 ▼7.54
Posts /wp-admin/edit.php3.47 ▲0.1251.45 ▲2.19
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.66 ▼9.61
Media Library /wp-admin/upload.php3.26 ▲0.0335.12 ▲3.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Shokola Custom and White Label
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,461 ▼28514.92 ▲0.521.79 ▲0.2643.30 ▲5.70
Dashboard /wp-admin1,866 ▼3056.21 ▲0.6399.52 ▲11.8226.74 ▼15.59
Posts /wp-admin/edit.php2,235 ▲1323.48 ▲1.4560.62 ▲18.4631.01 ▼5.15
Add New Post /wp-admin/post-new.php1,517 ▼923.12 ▲0.07579.04 ▼89.9431.04 ▼24.14
Media Library /wp-admin/upload.php1,369 ▼314.43 ▲0.2779.40 ▼31.5138.83 ▼8.33
Shokola Custom /wp-admin/shokola-custom-whitelabel.php260.420.0917.57

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/shokola-custom-whitelabel.php
    • > Network (severe)
    wp-admin/shokola-custom-whitelabel.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: custom, label, login, white

shokola-custom-white-label/shokola-custom-whitelabel.php 85% from 13 tests

This is the main PHP file of "Shokola Custom and White Label" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shokola-custom-white-label.php" instead of "shokola-custom-whitelabel.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin726 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123114496
Markdown1830121
JavaScript217067
CSS18027
PO File10015

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.34
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin