10% azurecurve-series-index

Code Review | azurecurve Series Index

WordPress plugin azurecurve Series Index scored10%from 54 tests.

About plugin

  • Plugin page: azurecurve-series...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2014
  • Latest release: Jan 19, 2019
  • Number of updates: 27
  • Update frequency: every 61.9 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,752 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/azurecurve-series-index/azurecurve-series-index.php+46
    Undefined variable: width

Server metrics [RAM: ▲0.09MB] [CPU: ▼10.40ms] Passed 4 tests

A check of server-side resources used by azurecurve Series Index
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.42 ▼0.01
Dashboard /wp-admin3.41 ▲0.0647.96 ▼14.74
Posts /wp-admin/edit.php3.46 ▲0.1049.20 ▼1.57
Add New Post /wp-admin/post-new.php5.99 ▲0.1087.26 ▼23.60
Media Library /wp-admin/upload.php3.33 ▲0.1033.79 ▼1.67
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.3033.06
Series Index /wp-admin/admin.php?page=azc-si3.3033.00

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
azc_si_options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

azurecurve Series Index: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲11413.39 ▼1.268.49 ▲6.7837.51 ▼3.89
Dashboard /wp-admin2,220 ▲435.61 ▼0.0682.65 ▼5.7075.02 ▲30.53
Posts /wp-admin/edit.php2,128 ▲281.98 ▲0.0335.37 ▼2.6632.62 ▼2.50
Add New Post /wp-admin/post-new.php1,565 ▲3723.09 ▼0.00743.14 ▲41.1161.62 ▲11.80
Media Library /wp-admin/upload.php1,425 ▲254.18 ▼0.1297.53 ▼2.3773.31 ▲28.43
Plugins /wp-admin/admin.php?page=azc-plugin-menus8611.9923.2128.84
Series Index /wp-admin/admin.php?page=azc-si1,1151.9923.0942.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-series-index/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-series-index/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: wordpress, series, series index, toggle, classicpress...

azurecurve-series-index/azurecurve-series-index.php 85% from 13 tests

The main PHP file in "azurecurve Series Index" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

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
Everything looks great! No dangerous files found in this plugin823 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP38857603
PO File13333137
CSS20676
JavaScript1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plus.png0.09KB0.10KB0.00%
images/minus.png0.08KB0.10KB0.00%
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%