87% ac-custom-loop-shortcode

Code Review | AC Custom Loop Shortcode

WordPress plugin AC Custom Loop Shortcode scored 87% from 54 tests.

About plugin

  • Plugin page: ac-custom-loop-sh...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.9.2
  • First release: Oct 10, 2018
  • Latest release: Apr 5, 2021
  • Number of updates: 34
  • Update frequency: every 26.8 days
  • Top authors: ambercouch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 955 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by AC Custom Loop Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.24 ▼3.02
Dashboard /wp-admin3.41 ▲0.0035.39 ▲0.82
Posts /wp-admin/edit.php3.64 ▲0.0037.87 ▼0.03
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.67 ▼1,189.39
Media Library /wp-admin/upload.php3.29 ▲0.0022.54 ▼1.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AC Custom Loop Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,749 ▲515.96 ▲0.365.87 ▼1.022.22 ▼0.04
Dashboard /wp-admin2,874 ▲136.11 ▼0.21116.90 ▼16.07153.63 ▼11.52
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0163.39 ▼1.46136.35 ▼6.82
Add New Post /wp-admin/post-new.php1,685 ▲2418.41 ▲1.22425.59 ▲19.37161.17 ▲3.79
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.03135.35 ▼8.91181.45 ▼12.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ac-custom-loop-shortcode/ac-wp-custom-loop-sc.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/ac-custom-loop-shortcode/loop-template.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Add the code to any content area that accepts shortcode.), #2 (Posts, Pages or Custom post types are shown on the front end of your website.)
The official readme.txt might help

ac-custom-loop-shortcode/ac-wp-custom-loop-sc.php 69% from 13 tests

The main PHP script in "AC Custom Loop Shortcode" version 1.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ac-custom-loop-shortcode.php" instead of "ac-wp-custom-loop-sc.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 233 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin244 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin