78% htaccess-server-info-server-status

Code Review | Apache Status & Info

WordPress plugin Apache Status & Info scored78%from 54 tests.

About plugin

  • Plugin page: htaccess-server-i...
  • Plugin version: 2.13.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 39
  • Update frequency: every 47.7 days
  • Top authors: PierreLannoy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,404 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.77MB] [CPU: ▼0.05ms] Passed 4 tests

This is a short check of server-side resources used by Apache Status & Info
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6743.22 ▲6.49
Dashboard /wp-admin4.12 ▲0.7752.25 ▼11.35
Posts /wp-admin/edit.php4.17 ▲0.8152.18 ▲5.55
Add New Post /wp-admin/post-new.php6.72 ▲0.8387.94 ▼0.89
Media Library /wp-admin/upload.php4.05 ▲0.8142.86 ▲7.34
Apache Information /wp-admin/admin.php?page=hsiss-info4.0540.27
Reports /wp-admin/admin.php?page=perfopsone-insights4.0640.41
Control Center /wp-admin/admin.php?page=perfopsone-dashboard4.0636.07
Apache Status /wp-admin/admin.php?page=hsiss-status4.3843.60
Apache Configuration /wp-admin/admin.php?page=hsiss-config4.0539.35
Apache Status & Info /wp-admin/admin.php?page=hsiss-settings4.3036.83

Server storage [IO: ▲0.81MB] [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 detected: 1 file (0.56KB) outside of "wp-content/plugins/htaccess-server-info-server-status/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 452 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Apache Status & Info: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5814.17 ▼0.051.51 ▼0.4637.49 ▼4.54
Dashboard /wp-admin2,235 ▲585.53 ▼0.1382.91 ▼3.3736.75 ▼6.35
Posts /wp-admin/edit.php2,147 ▲502.01 ▲0.0136.13 ▲1.1130.35 ▼8.77
Add New Post /wp-admin/post-new.php1,547 ▲2123.19 ▲0.04689.75 ▲11.1959.21 ▼1.25
Media Library /wp-admin/upload.php1,440 ▲464.20 ▼0.00106.03 ▼0.6643.12 ▼1.90
Apache Information /wp-admin/admin.php?page=hsiss-info8272.0523.6336.20
Reports /wp-admin/admin.php?page=perfopsone-insights9212.1624.1127.05
Control Center /wp-admin/admin.php?page=perfopsone-dashboard1,0462.0124.1829.86
Apache Status /wp-admin/admin.php?page=hsiss-status2,0202.5767.97104.77
Apache Configuration /wp-admin/admin.php?page=hsiss-config8102.0424.9525.19
Apache Status & Info /wp-admin/admin.php?page=hsiss-settings9422.0124.3828.61

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/htaccess-server-info-server-status/public/partials/htaccess-server-info-server-status-public-display.php
  • 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/htaccess-server-info-server-status/includes/libraries/psr/http-message/ServerRequestInterface.php:43
    • > PHP Fatal error
      Trait 'cebe\\markdownparser\\block\\CodeTrait' not found in wp-content/plugins/htaccess-server-info-server-status/includes/libraries/markdown/block/FencedCodeTrait.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'cebe\\markdownparser\\Parser' not found in wp-content/plugins/htaccess-server-info-server-status/includes/libraries/markdown/MarkdownParser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/htaccess-server-info-server-status/includes/libraries/psr/log/NullLogger.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/htaccess-server-info-server-status/perfopsone/class-upgraderskin.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/htaccess-server-info-server-status/includes/libraries/psr/http-message/ResponseInterface.php:20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/htaccess-server-info-server-status/perfopsone/class-installer.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htaccess-server-info-server-status/perfopsone/functions.php:41
    • > PHP Warning
      Use of undefined constant HSISS_VENDOR_DIR - assumed 'HSISS_VENDOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/htaccess-server-info-server-status/includes/libraries/class-libraries.php on line 64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Hsiss\\System\\plugin_dir_path() in wp-content/plugins/htaccess-server-info-server-status/includes/system/class-environment.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: server-info, htaccess, server-status, apache, stackdriver

htaccess-server-info-server-status/htaccess-server-info-server-status.php Passed 13 tests

The principal PHP file in "Apache Status & Info" v. 2.13.0 is loaded by WordPress automatically on each request
78 characters long description:
Apache server-info and server-status monitoring right in your WordPress admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin15,044 lines of code in 421 files:
LanguageFilesBlank linesComment linesLines of code
PHP1091,0956,2977,077
SVG286015,702
JavaScript83486961,032
CSS91429915
Markdown71240265
JSON20053

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.62
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces15
Interfaces13
Traits15
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods576
▷ Static methods20936.28%
▷ Public methods42974.48%
▷ Protected methods9917.19%
▷ Private methods488.33%
Functions22
▷ Named functions627.27%
▷ Anonymous functions1672.73%
Constants55
▷ Global constants4480.00%
▷ Class constants1120.00%
▷ Public constants11100.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