84% about-our-services

Code Review | About our services

WordPress plugin About our services scored84%from 54 tests.

About plugin

  • Plugin page: about-our-services
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Apr 14, 2022
  • Number of updates: 16
  • Update frequency: every 27.7 days
  • Top authors: triopsi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.58ms] Passed 4 tests

A check of server-side resources used by About our services
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1547.37 ▲3.17
Dashboard /wp-admin3.46 ▲0.1550.23 ▼4.20
Posts /wp-admin/edit.php3.57 ▲0.2155.02 ▲3.51
Add New Post /wp-admin/post-new.php6.06 ▲0.1787.31 ▼4.81
Media Library /wp-admin/upload.php3.38 ▲0.1541.41 ▲5.43
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos3.5038.00
Add New Service /wp-admin/post-new.php?post_type=thaos3.5260.40
All Services /wp-admin/edit.php?post_type=thaos3.4541.49
TH Service options /wp-admin/options-general.php?page=thaos3.3535.16
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help3.3532.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
thaos_plugin_version
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by About our services
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12214.37 ▲0.202.09 ▲0.2742.81 ▲0.67
Dashboard /wp-admin2,258 ▲785.82 ▲0.1591.25 ▲0.6839.12 ▼4.38
Posts /wp-admin/edit.php2,144 ▲442.34 ▲0.3141.04 ▲1.8536.48 ▼7.41
Add New Post /wp-admin/post-new.php1,587 ▲5218.09 ▼0.08638.06 ▼9.3650.08 ▼14.40
Media Library /wp-admin/upload.php1,458 ▲644.30 ▲0.1096.20 ▼11.7941.49 ▼4.56
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos1,3442.0832.9532.94
Add New Service /wp-admin/post-new.php?post_type=thaos2,4287.76183.6774.35
All Services /wp-admin/edit.php?post_type=thaos1,2623.3762.6326.67
TH Service options /wp-admin/options-general.php?page=thaos1,1282.6545.4734.28
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help1,0111.9931.1229.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

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
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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-admin.php:33
    • > 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/inc/thaos-post-metabox.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

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: site, about, aboutusservice, offer, service...

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

The main PHP script in "About our services" version 1.5.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,100 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9149402687
PO File18488220
CSS216480
Markdown139078
JavaScript45335

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected