77% aftersalespro

Code Review | AfterSalesPro Plugin

WordPress plugin AfterSalesPro Plugin scored77%from 54 tests.

About plugin

  • Plugin page: aftersalespro
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2022
  • Latest release: Sep 12, 2023
  • Number of updates: 20
  • Update frequency: every 20.2 days
  • Top authors: northbandltd (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,919 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲2.63ms] Passed 4 tests

Server-side resources used by AfterSalesPro Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.11 ▲4.26
Dashboard /wp-admin3.41 ▲0.1151.15 ▲2.82
Posts /wp-admin/edit.php3.52 ▲0.1746.10 ▼1.92
Add New Post /wp-admin/post-new.php5.99 ▲0.10108.73 ▲16.47
Media Library /wp-admin/upload.php3.33 ▲0.1043.29 ▲5.35

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

AfterSalesPro Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.72 ▲0.171.84 ▲0.1243.24 ▲0.30
Dashboard /wp-admin2,211 ▲305.51 ▼0.20102.88 ▼5.5975.39 ▲29.51
Posts /wp-admin/edit.php2,116 ▲161.99 ▲0.0434.91 ▼3.1436.23 ▼1.76
Add New Post /wp-admin/post-new.php1,691 ▲16322.07 ▼1.08734.33 ▲27.7746.26 ▼20.93
Media Library /wp-admin/upload.php1,416 ▲164.16 ▼0.00105.56 ▲3.9780.72 ▲34.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/aftersalespro/includes/class-aftersalesprogr-endpoints.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/aftersalespro/admin/partials/footer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/aftersalespro/admin/partials/dashboard.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aftersalespro/admin/partials/header.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Contributors: The plugin tags were not defined
The official readme.txt is a good inspiration

aftersalespro/aftersalespro.php 77% from 13 tests

The entry point to "AfterSalesPro Plugin" version 1.1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("6.0" instead of "5.7")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")

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
There were no executable files found in this plugin1,436 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File13847127

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods818.60%
▷ Public methods3172.09%
▷ Protected methods00.00%
▷ Private methods1227.91%
▷ Named functions880.00%
▷ Anonymous functions220.00%
▷ Global constants2100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png20.27KB7.37KB▼ 63.63%
admin/images/icon.png1.34KB0.67KB▼ 49.93%
admin/images/calendly-cta.png74.16KB28.79KB▼ 61.18%