84% alternative-listly-shortcode

Code Review | Alternative List.ly shortcode plugin

WordPress plugin Alternative List.ly shortcode plugin scored84%from 54 tests.

About plugin

  • Plugin page: alternative-listl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2014
  • Latest release: Nov 23, 2014
  • Number of updates: 4
  • Update frequency: every 3.8 days
  • Top authors: peeping4dsun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.78ms] Passed 4 tests

An overview of server-side resources used by Alternative List.ly shortcode plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.53 ▲0.35
Dashboard /wp-admin3.31 ▲0.0148.47 ▲1.05
Posts /wp-admin/edit.php3.37 ▲0.0150.47 ▲0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.15 ▲7.82
Media Library /wp-admin/upload.php3.23 ▲0.0137.26 ▲1.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Alternative List.ly shortcode plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.46 ▼0.891.90 ▲0.2940.24 ▼11.41
Dashboard /wp-admin2,206 ▲185.85 ▲0.96107.80 ▼5.9338.46 ▼2.39
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0340.86 ▼0.9434.45 ▼3.77
Add New Post /wp-admin/post-new.php1,533 ▲1923.25 ▲5.71684.88 ▲49.5757.23 ▲2.42
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.07105.66 ▲1.9845.32 ▼1.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alternative-listly-shortcode/alternativelistly.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: light, shortcode, embed, lists

alternative-listly-shortcode/alternativelistly.php 92% from 13 tests

This is the main PHP file of "Alternative List.ly shortcode plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alternative-listly-shortcode.php" instead of "alternativelistly.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP163634
JavaScript10011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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