77% ac-custom-loop-shortcode

Code Review | AC Custom Loop Shortcode

WordPress plugin AC Custom Loop Shortcode scored77%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: 6.3.1
  • 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

20+ active /1,313 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.72ms] Passed 4 tests

Analyzing server-side resources used by AC Custom Loop Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.16 ▲1.29
Dashboard /wp-admin3.31 ▲0.0050.15 ▲2.14
Posts /wp-admin/edit.php3.36 ▲0.0043.46 ▼2.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.96 ▼28.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.42 ▼0.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AC Custom Loop Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.37 ▼1.321.85 ▲0.2345.75 ▲4.71
Dashboard /wp-admin2,203 ▲125.86 ▲0.95104.65 ▲5.7342.59 ▼1.94
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0533.39 ▼7.8633.62 ▼3.34
Add New Post /wp-admin/post-new.php1,514 ▼1417.83 ▼0.40632.35 ▲22.3357.03 ▲2.77
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0495.31 ▼7.9939.84 ▼4.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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 server errors when accessed directly:
    • > 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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #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.)
You can take inspiration from this readme.txt

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

"AC Custom Loop Shortcode" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/lang/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ac-custom-loop-shortcode.php" instead of "ac-wp-custom-loop-sc.php")
  • Description: The description should be shorter than 140 characters (currently 233 characters long)
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected244 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP24632182
Twig32435
CSS14025
Markdown1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for 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
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin