90% whitelabel-000webhost

Code Review | Whitelabel for 000webhost

WordPress plugin Whitelabel for 000webhost scored90%from 54 tests.

About plugin

  • Plugin page: whitelabel-000web...
  • Plugin version: 1.1
  • 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 26, 2019
  • Latest release: Jul 27, 2019
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: sakthi2210 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Whitelabel for 000webhost
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.63 ▼0.94
Dashboard /wp-admin3.32 ▲0.0148.50 ▼9.02
Posts /wp-admin/edit.php3.37 ▲0.0152.13 ▼4.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.70 ▲5.90
Media Library /wp-admin/upload.php3.24 ▲0.0140.33 ▲4.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whitelabel for 000webhost
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18614.08 ▲0.808.26 ▲3.0642.23 ▼1.96
Dashboard /wp-admin2,201 ▲135.01 ▲0.17110.76 ▲4.5541.91 ▲1.61
Posts /wp-admin/edit.php2,091 ▲22.53 ▲0.5250.16 ▲8.0538.99 ▲3.54
Add New Post /wp-admin/post-new.php1,517 ▼623.15 ▼0.14708.39 ▼31.2439.90 ▼18.82
Media Library /wp-admin/upload.php1,386 ▼24.31 ▲0.11113.26 ▲4.0647.76 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
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 smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
2 plugin tags: 000webhost, whitelabel

whitelabel-000webhost/whitelabel-000webhost.php Passed 13 tests

The main PHP script in "Whitelabel for 000webhost" version 1.1 is automatically included on every request by WordPress
93 characters long description:
Remove or Disable 000webhost Branding & Ad promotions on both Wordpress Front-end & Back-end.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin34 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2102730
CSS2003
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin