84% a-z-listing

Code Review | A-Z Listing

WordPress plugin A-Z Listing scored 84% from 54 tests.

About plugin

  • Plugin page: a-z-listing
  • Plugin version: 4.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 12, 2013
  • Latest release: Apr 5, 2022
  • Number of updates: 150
  • Update frequency: every 20.4 days
  • Top authors: diddledan (66.67%)bowlhat (26%)diddledani (8.67%)

Code review

54 tests

User reviews

61 reviews

Install metrics

9,000+ active / 91,667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▼303.68ms] Passed 4 tests

Analyzing server-side resources used by A-Z Listing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7074.72 ▲2.46
Dashboard /wp-admin4.11 ▲0.7045.39 ▲3.32
Posts /wp-admin/edit.php4.34 ▲0.6947.41 ▼2.36
Add New Post /wp-admin/post-new.php7.58 ▲0.61108.08 ▼1,218.13
Media Library /wp-admin/upload.php4.00 ▲0.7037.61 ▲5.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 1 new option
New WordPress options
widget_a_z_listing_widget

Browser metrics Passed 4 tests

An overview of browser requirements for A-Z Listing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,870 ▲12215.86 ▲0.427.38 ▼1.723.61 ▲0.08
Dashboard /wp-admin2,958 ▲396.39 ▲0.01183.70 ▼33.97215.84 ▼4.38
Posts /wp-admin/edit.php2,725 ▲73.43 ▲0.0190.55 ▲7.23182.36 ▼9.31
Add New Post /wp-admin/post-new.php1,765 ▲7017.60 ▼2.16671.53 ▲3.32212.21 ▼9.57
Media Library /wp-admin/upload.php1,747 ▲175.80 ▲0.16172.67 ▼23.57247.95 ▲6.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_a_z_listing_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-z-listing/wp-api/api.php:90
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_instance_id() on null in wp-content/plugins/a-z-listing/templates/a-z-listing.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Symfony\\Component\\Finder\\Finder' not found in wp-content/plugins/a-z-listing/scoper.inc.php:17
    • > PHP Notice
      Undefined variable: a_z_query in wp-content/plugins/a-z-listing/templates/a-z-listing.example.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_instance_id() on null in wp-content/plugins/a-z-listing/templates/a-z-listing.example.php:15
    • > PHP Notice
      Undefined variable: a_z_query in wp-content/plugins/a-z-listing/templates/a-z-listing.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: listing, widget, archive, a to z, a-z...

a-z-listing/a-z-listing.php Passed 13 tests

The main PHP script in "A-Z Listing" version 4.2.1 is automatically included on every request by WordPress
34 characters long description:
Display an A to Z listing of posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected51,010 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
JSON62042,729
PHP679643,0077,122
JavaScript1384161854
CSS5614198
Sass352107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.84
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes43
▷ Abstract classes511.63%
▷ Concrete classes3888.37%
▷ Final classes12.63%
Methods212
▷ Static methods7033.02%
▷ Public methods20094.34%
▷ Protected methods52.36%
▷ Private methods73.30%
Functions124
▷ Named functions10181.45%
▷ Anonymous functions2318.55%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected