83% aweos-php-server-info

Code Review | AWEOS PHP Server Info

WordPress plugin AWEOS PHP Server Info scored83%from 54 tests.

About plugin

  • Plugin page: aweos-php-server-...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 15
  • Update frequency: every 135.7 days
  • Top authors: aweos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /16,911 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by AWEOS PHP Server Info
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.20 ▲4.53
Dashboard /wp-admin3.33 ▼0.0249.83 ▼15.25
Posts /wp-admin/edit.php3.37 ▲0.0250.51 ▼0.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.28 ▼9.91
Media Library /wp-admin/upload.php3.24 ▲0.0242.47 ▲2.69

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

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/aweos-php-server-info/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

AWEOS PHP Server Info: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17013.23 ▼1.142.09 ▼0.2133.60 ▼8.92
Dashboard /wp-admin2,309 ▲1035.82 ▼0.0899.22 ▼5.7345.57 ▲1.68
Posts /wp-admin/edit.php2,102 ▼12.05 ▲0.0039.76 ▼0.2436.04 ▼1.18
Add New Post /wp-admin/post-new.php1,542 ▲1123.35 ▼0.09666.75 ▲20.1358.63 ▼2.27
Media Library /wp-admin/upload.php1,399 ▼14.22 ▼0.01101.21 ▼3.3144.50 ▼3.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aweos-php-server-info/aw-php-server-info.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: php, info, aweos, server, dashboard

aweos-php-server-info/aw-php-server-info.php 77% from 13 tests

This is the main PHP file of "AWEOS PHP Server Info" version 1.2, 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:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aweos-php-server-info.php" instead of "aw-php-server-info.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1271876
CSS15020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces0
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin