89% iweblab-hosting-manager

Code Review | IWEBLAB Hosting Manager

WordPress plugin IWEBLAB Hosting Manager scored89%from 54 tests.

About plugin

  • Plugin page: iweblab-hosting-m...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2020
  • Latest release: Sep 29, 2021
  • Number of updates: 8
  • Update frequency: every 72.9 days
  • Top authors: iwebelab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /867 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.81ms] Passed 4 tests

A check of server-side resources used by IWEBLAB Hosting Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0533.60 ▼8.97
Dashboard /wp-admin3.39 ▲0.0946.06 ▼1.15
Posts /wp-admin/edit.php3.44 ▲0.0947.36 ▼2.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.68 ▼10.46
Media Library /wp-admin/upload.php3.32 ▲0.0936.26 ▲1.23
IWEBLAB Hosting Manager /wp-admin/options-general.php?page=iweblab-manager3.2933.19

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification found: 1 file (0.82KB) outside of "wp-content/plugins/iweblab-hosting-manager/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
IHM-Settings
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for IWEBLAB Hosting Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.26 ▼1.121.71 ▼0.2242.08 ▼6.55
Dashboard /wp-admin2,210 ▲224.88 ▼1.02108.58 ▼4.6737.31 ▼8.84
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0339.54 ▼1.0434.66 ▲1.66
Add New Post /wp-admin/post-new.php1,545 ▲1118.28 ▼4.77607.60 ▼57.6251.13 ▼6.86
Media Library /wp-admin/upload.php1,389 ▲44.18 ▼0.0193.76 ▼7.4639.67 ▼0.88
IWEBLAB Hosting Manager /wp-admin/options-general.php?page=iweblab-manager8852.0628.2229.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: litespeed, htaccess, iweblab, hosting

iweblab-hosting-manager/plugin.php 92% from 13 tests

The main file in "IWEBLAB Hosting Manager" v. 0.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("iweblab-hosting-manager.php" instead of "plugin.php")

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 plugin425 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311717298
CSS122127

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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
Namespaces2
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin