83% a-z-indexing-startup

Code Review | A-Z Indexing startup

WordPress plugin A-Z Indexing startup scored83%from 54 tests.

About plugin

  • Plugin page: a-z-indexing-startup
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Dec 21, 2014
  • Latest release: Dec 22, 2014
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ridahost (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /3,447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by A-Z Indexing startup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.28 ▼0.65
Dashboard /wp-admin3.31 ▲0.0148.07 ▼1.56
Posts /wp-admin/edit.php3.36 ▲0.0050.17 ▲2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.78 ▼6.02
Media Library /wp-admin/upload.php3.23 ▲0.0038.14 ▲3.84

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for A-Z Indexing startup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.41 ▼0.971.67 ▼0.3343.99 ▼1.36
Dashboard /wp-admin2,203 ▲155.80 ▼0.06102.88 ▲5.7238.58 ▼3.32
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0141.17 ▼2.5135.47 ▼4.71
Add New Post /wp-admin/post-new.php1,514 ▼017.64 ▼0.06604.89 ▼14.2442.91 ▼13.84
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0593.83 ▼3.3940.61 ▼2.72

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-z-indexing-startup/A-Z-Indexing-startup.php:36

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Here's a screenshot of it in action) image not found
The official readme.txt is a good inspiration

a-z-indexing-startup/A-Z-Indexing-startup.php 85% from 13 tests

This is the main PHP file of "A-Z Indexing startup" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("a-z-indexing-startup.php" instead of "A-Z-Indexing-startup.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
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17229

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected