90% whitelabel-wp

Code Review | Whitelabel for Wordpress

WordPress plugin Whitelabel for Wordpress scored90%from 54 tests.

About plugin

  • Plugin page: whitelabel-wp
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Jul 30, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sakthi2210 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Whitelabel for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▲0.23
Dashboard /wp-admin3.32 ▲0.0142.40 ▼11.23
Posts /wp-admin/edit.php3.37 ▲0.0244.14 ▼12.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.86 ▼13.49
Media Library /wp-admin/upload.php3.24 ▲0.0238.64 ▲6.95

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Whitelabel for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,618 ▼12814.48 ▲0.181.78 ▼0.0530.24 ▼15.98
Dashboard /wp-admin2,005 ▼1835.66 ▼0.1989.26 ▼28.4934.50 ▼12.88
Posts /wp-admin/edit.php2,070 ▼192.29 ▲0.3042.88 ▲4.0432.92 ▼4.08
Add New Post /wp-admin/post-new.php1,660 ▲14722.31 ▼1.13648.93 ▼44.5431.82 ▼23.35
Media Library /wp-admin/upload.php1,365 ▼234.33 ▲0.12100.91 ▼6.3539.10 ▼6.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: unbranding, login-page, whitelabel

whitelabel-wp/whitelabel-wp.php Passed 13 tests

"Whitelabel for Wordpress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
Remove wordpress footprints from admin panel & login page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin51 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP293136
CSS20015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
There are no PNG files in this plugin