89% wpheka-web-server-information

Code Review | Web Server Information

WordPress plugin Web Server Information scored89%from 54 tests.

About plugin

  • Plugin page: wpheka-web-server...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2020
  • Latest release: Aug 24, 2023
  • Number of updates: 13
  • Update frequency: every 86.3 days
  • Top authors: akshayaswaroop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,897 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▲3.53ms] Passed 4 tests

Server-side resources used by Web Server Information
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.04 ▼1.82
Dashboard /wp-admin3.35 ▲0.0552.38 ▼1.39
Posts /wp-admin/edit.php3.47 ▲0.1154.06 ▲11.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.57 ▲6.32
Media Library /wp-admin/upload.php3.28 ▲0.0542.14 ▲11.31
Web Server Information /wp-admin/admin.php?page=wpheka-information3.27207.87

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
wpheka_web_server_info_version
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Web Server Information
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲13813.22 ▼1.411.92 ▲0.1143.03 ▼1.68
Dashboard /wp-admin2,270 ▲855.82 ▲0.90101.28 ▼21.3259.20 ▲15.73
Posts /wp-admin/edit.php2,162 ▲941.98 ▼0.0739.65 ▲4.1036.31 ▲1.65
Add New Post /wp-admin/post-new.php1,590 ▲7118.36 ▼4.89671.85 ▲3.2671.36 ▲0.50
Media Library /wp-admin/upload.php1,461 ▲704.25 ▲0.0596.09 ▼5.1270.55 ▲23.45
Web Server Information /wp-admin/admin.php?page=wpheka-information9292.1823.3526.94

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • wpheka_web_server_info_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "paypal.me/AKSHAYASWAROOP"
The official readme.txt might help

wpheka-web-server-information/wpheka-web-server-information.php 92% from 13 tests

The main PHP script in "Web Server Information" version 1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)

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
Good job! No executable or dangerous file extensions detected484 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP598227467
CSS11014
SVG1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.40
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin