78% plugins-az

Code Review | Plugins A to Z

WordPress plugin Plugins A to Z scored78%from 54 tests.

About plugin

  • Plugin page: plugins-az
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Nov 20, 2017
  • Number of updates: 10
  • Update frequency: every 78.8 days
  • Top authors: Latz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Plugins A to Z
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.43 ▼0.71
Dashboard /wp-admin3.33 ▼0.0243.93 ▼11.79
Posts /wp-admin/edit.php3.38 ▲0.0248.32 ▲0.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.78 ▼0.94
Media Library /wp-admin/upload.php3.25 ▲0.0232.32 ▼2.60
Plugins AZ /wp-admin/options-general.php?page=pluginsaz3.2230.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Plugins A to Z
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.65 ▼0.734.45 ▲2.4941.24 ▲0.76
Dashboard /wp-admin2,215 ▲274.87 ▼1.02109.55 ▲6.0540.68 ▼0.31
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0139.26 ▲4.5235.06 ▲3.25
Add New Post /wp-admin/post-new.php1,533 ▼023.42 ▲0.15592.88 ▼77.4853.31 ▼12.34
Media Library /wp-admin/upload.php1,394 ▲64.25 ▲0.0297.59 ▼9.6241.13 ▼7.77
Plugins AZ /wp-admin/options-general.php?page=pluginsaz7872.0725.4623.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=pluginsaz
    • > Notice in wp-content/plugins/plugins-az/plugins_az_options.php+23
    Trying to access array offset on value of type bool

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
Please take a closer look at the following
  • 1× 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/plugins-az/plugins_az.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === plugins-az === )
The official readme.txt is a good inspiration

plugins-az/plugins_az.php 92% from 13 tests

The primary PHP file in "Plugins A to Z" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plugins-az.php" instead of "plugins_az.php")

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
No dangerous file extensions were detected252 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP32921124
PO File2202480
CSS14033
JavaScript19315

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png7.96KB3.31KB▼ 58.35%
assets/banner-772x250.png4.41KB4.53KB0.00%
assets/screenshot-1.png10.30KB4.96KB▼ 51.81%
assets/screenshot-2.png9.17KB4.45KB▼ 51.53%
assets/screenshot-3.png7.41KB3.81KB▼ 48.60%