78% acs-points

Code Review | ACS Points Plugin

WordPress plugin ACS Points Plugin scored78%from 54 tests.

About plugin

  • Plugin page: acs-points
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2022
  • Latest release: Sep 12, 2023
  • Number of updates: 17
  • Update frequency: every 21.2 days
  • Top authors: northbandltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,066 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.46ms] Passed 4 tests

This is a short check of server-side resources used by ACS Points Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0940.23 ▼1.75
Dashboard /wp-admin3.39 ▲0.0848.28 ▼2.73
Posts /wp-admin/edit.php3.50 ▲0.1545.10 ▼3.51
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.60 ▼9.83
Media Library /wp-admin/upload.php3.31 ▲0.0835.35 ▲3.29

Server storage [IO: ▲0.13MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for ACS Points Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.66 ▼1.001.96 ▲0.2344.19 ▲2.69
Dashboard /wp-admin2,209 ▲214.86 ▼1.00101.16 ▼1.0739.36 ▼0.54
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0134.96 ▼5.0032.97 ▼5.16
Add New Post /wp-admin/post-new.php1,514 ▼717.49 ▼5.98680.47 ▲42.7959.13 ▲8.94
Media Library /wp-admin/upload.php1,382 ▼94.23 ▲0.0598.87 ▲0.8842.24 ▼0.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/acs-points/acs-points-map.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: filesPath in wp-content/plugins/acs-points/acs-points-map.php on line 4

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)
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: aftersalesprogr, acs, acs courier, aftersalespro

acs-points/acs-points-plugin.php 85% from 13 tests

The principal PHP file in "ACS Points Plugin" v. 1.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acs-points.php" instead of "acs-points-plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected1,596 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

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.26
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods210.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions480.00%
▷ Anonymous functions120.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icons/acs-courier-logo.png28.06KB9.09KB▼ 67.59%