94% about-our-services

Code Review | About our services

WordPress plugin About our services scored 94% from 54 tests.

About plugin

  • Plugin page: about-our-services
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 5.9.2
  • First release: Jan 27, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 15
  • Update frequency: every 26.3 days
  • Top authors: triopsi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 996 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼283.48ms] Passed 4 tests

Server-side resources used by About our services
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.6070.89 ▲21.50
Dashboard /wp-admin3.57 ▲0.1636.55 ▲2.80
Posts /wp-admin/edit.php3.79 ▲0.1540.39 ▲3.43
Add New Post /wp-admin/post-new.php7.03 ▲0.0693.99 ▼1,140.12
Media Library /wp-admin/upload.php3.45 ▲0.1627.10 ▼0.04
All Services /wp-admin/edit.php?post_type=thaos3.5931.75
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos3.4532.04
TH Service options /wp-admin/options-general.php?page=thaos3.4238.17
Add New Service /wp-admin/post-new.php?post_type=thaos3.8050.97
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help3.4225.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options
thaos_plugin_version

Browser metrics Passed 4 tests

A check of browser resources used by About our services
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,873 ▲11916.20 ▲0.908.13 ▲2.412.67 ▼0.22
Dashboard /wp-admin2,960 ▲1026.97 ▲0.78119.51 ▼28.20236.45 ▲34.06
Posts /wp-admin/edit.php2,728 ▲373.23 ▼0.0167.58 ▲1.03157.66 ▲11.18
Add New Post /wp-admin/post-new.php1,813 ▲15218.14 ▼2.64392.20 ▼5.54184.57 ▲34.33
Media Library /wp-admin/upload.php1,762 ▲646.04 ▲0.59125.01 ▼24.25235.25 ▲4.78
All Services /wp-admin/edit.php?post_type=thaos1,6485.1091.15114.39
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos1,7033.3458.39114.93
TH Service options /wp-admin/options-general.php?page=thaos1,5293.5277.13145.47
Add New Service /wp-admin/post-new.php?post_type=thaos3,15210.00210.94224.59
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help1,3273.1257.78133.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-types.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-settings.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-post-metabox.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-our-services/inc/thaos-shortcode.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-user.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/th-about-our-services.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-admin.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: shortcode, post, service, site, aboutusservice...

about-our-services/th-about-our-services.php 85% from 13 tests

The main PHP script in "About our services" version 1.4.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("about-our-services.php" instead of "th-about-our-services.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,022 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP9149402687
PO File18488220
CSS216480
JavaScript45335

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin