84% app-service-info-for-azure

Code Review | App Service Info for Azure

WordPress plugin App Service Info for Azure scored84%from 54 tests.

About plugin

  • Plugin page: app-service-info-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 20, 2016
  • Latest release: Sep 20, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: hcd00045 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /803 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.43ms] Passed 4 tests

Analyzing server-side resources used by App Service Info for Azure
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.99 ▼9.42
Dashboard /wp-admin3.32 ▲0.0245.66 ▼0.16
Posts /wp-admin/edit.php3.37 ▲0.0246.28 ▼4.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.78 ▼15.61
Media Library /wp-admin/upload.php3.24 ▲0.0238.47 ▲1.78

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for App Service Info for Azure
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.39 ▼0.991.74 ▼0.4939.19 ▼2.02
Dashboard /wp-admin2,214 ▲265.86 ▼0.0396.09 ▼8.3836.02 ▼7.18
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0339.53 ▼1.1435.36 ▲0.12
Add New Post /wp-admin/post-new.php1,525 ▼623.51 ▲5.30676.12 ▲66.9655.05 ▲0.21
Media Library /wp-admin/upload.php1,399 ▲114.24 ▲0.0596.76 ▲0.9142.67 ▼1.26

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/app-service-info-for-azure/admin/admin.php:167

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

app-service-info-for-azure/app-service-info-azure.php 92% from 13 tests

The main PHP script in "App Service Info for Azure" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("app-service-info-for-azure.php" instead of "app-service-info-azure.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin152 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin