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.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 12, 2013
  • Latest release: Aug 2, 2022
  • Number of updates: 153
  • Update frequency: every 20.8 days
  • Top authors: diddledan (65.36%)bowlhat (25.49%)diddledani (10.46%)

Code review

54 tests

User reviews

64 reviews

Install metrics

10,000+ active / 122,348 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.71MB] [CPU: ▲5.33ms] Passed 4 tests

A check of server-side resources used by A-Z Listing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲0.7245.56 ▲3.51
Dashboard /wp-admin4.01 ▲0.7155.82 ▲6.31
Posts /wp-admin/edit.php4.06 ▲0.7054.15 ▲8.91
Add New Post /wp-admin/post-new.php6.61 ▲0.72105.38 ▲7.15
Media Library /wp-admin/upload.php3.94 ▲0.7040.79 ▲4.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 7 new options
New WordPress options
widget_a_z_listing_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for A-Z Listing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.25 ▼1.094.52 ▲2.5838.66 ▼4.09
Dashboard /wp-admin2,211 ▲204.84 ▼0.05115.72 ▲7.1043.40 ▲0.33
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0340.54 ▲3.1134.94 ▲0.35
Add New Post /wp-admin/post-new.php6,420 ▲4,88620.25 ▼2.86888.15 ▲270.0055.48 ▼23.87
Media Library /wp-admin/upload.php1,391 ▲34.31 ▲0.10100.46 ▲3.3042.35 ▲0.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_a_z_listing_widget
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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.php:23
    • > PHP Notice
      Undefined variable: a_z_query in wp-content/plugins/a-z-listing/templates/a-z-listing.php on line 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 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.example.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
6 plugin tags: a-z, listing, archive, index, a to z...

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

The principal PHP file in "A-Z Listing" v. 4.3.1 is loaded by WordPress automatically on each request
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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin49,440 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
JSON62041,162
PHP679643,0257,106
JavaScript1489161867
CSS5614198
Sass352107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.66
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity3.21
▷ 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
There were not PNG files found in your plugin