77% azurecurve-page-index

Code Review | azurecurve Page Index

WordPress plugin azurecurve Page Index scored77%from 54 tests.

About plugin

  • Plugin page: azurecurve-page-i...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Dec 6, 2018
  • Number of updates: 20
  • Update frequency: every 72.5 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.06ms] Passed 4 tests

A check of server-side resources used by azurecurve Page Index
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.65 ▼10.69
Dashboard /wp-admin3.39 ▲0.0947.60 ▼5.70
Posts /wp-admin/edit.php3.44 ▲0.0846.49 ▼3.17
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.25 ▼4.68
Media Library /wp-admin/upload.php3.31 ▲0.0839.14 ▲4.23
Page Index /wp-admin/admin.php?page=azc-pi3.2533.65
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2830.46

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
azc_pi
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for azurecurve Page Index
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.28 ▼1.084.48 ▲2.5445.71 ▲5.35
Dashboard /wp-admin2,219 ▲345.88 ▲0.0599.99 ▼5.0191.54 ▲52.19
Posts /wp-admin/edit.php2,120 ▲312.02 ▲0.0335.00 ▼1.0434.68 ▼3.24
Add New Post /wp-admin/post-new.php1,692 ▲15922.21 ▼0.78737.65 ▲65.9048.85 ▼5.81
Media Library /wp-admin/upload.php1,410 ▲224.23 ▲0.03100.44 ▼13.8775.56 ▲28.91
Page Index /wp-admin/admin.php?page=azc-pi9532.0230.0427.87
Plugins /wp-admin/admin.php?page=azc-plugin-menus8502.0224.7827.22

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • azc_pi
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+152
    Undefined index: width
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+156
    Undefined index: height
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+160
    Undefined index: lineheight
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+164
    Undefined index: margin
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+168
    Undefined index: padding
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+172
    Undefined index: textalign
    • > GET request to /wp-admin/admin.php?page=azc-pi
    • > Notice in wp-content/plugins/azurecurve-page-index/azurecurve-page-index.php+176
    Undefined index: fontweight

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-page-index/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-page-index/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Sample page index.)
The official readme.txt is a good inspiration

azurecurve-page-index/azurecurve-page-index.php 77% from 13 tests

The main file in "azurecurve Page Index" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 192 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin494 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37749466
CSS20428

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions12
▷ Named functions12100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png13.29KB8.10KB▼ 39.09%
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%