77% azurecurve-conditional-links

Code Review | azurecurve Conditional Page Links

WordPress plugin azurecurve Conditional Page Links scored 77% from 53 tests.

About plugin

  • Plugin page: azurecurve-condit...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 5.8.1
  • First release: Dec 7, 2015
  • Latest release: Dec 3, 2018
  • Number of updates: 11
  • Update frequency: every 99.4 days
  • Top authors: azurecurve (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by azurecurve Conditional Page Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.08 ▲10.34
Dashboard /wp-admin3.07 ▲0.0248.94 ▲3.87
Posts /wp-admin/edit.php3.12 ▲0.0140.78 ▼1.71
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.53 ▼1,173.00
Media Library /wp-admin/upload.php3.01 ▲0.0136.54 ▼2.72
Conditional Links /wp-admin/admin.php?page=azc-cl2.9628.06
Plugins /wp-admin/admin.php?page=azc-plugin-menus2.9828.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
azc_cl

Browser metrics Passed 4 tests

This is an overview of browser requirements for azurecurve Conditional Page Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,740 ▲13416.18 ▲0.497.62 ▼1.9846.39 ▼0.64
Dashboard /wp-admin2,990 ▲1405.94 ▼0.05130.74 ▲7.09115.89 ▲10.80
Posts /wp-admin/edit.php2,745 ▲392.58 ▼0.1063.63 ▼4.8091.44 ▲3.54
Add New Post /wp-admin/post-new.php1,883 ▲23019.28 ▲0.46377.81 ▲29.48116.66 ▲7.07
Media Library /wp-admin/upload.php1,757 ▼154.99 ▲0.00123.13 ▼22.11126.82 ▲8.37
Conditional Links /wp-admin/admin.php?page=azc-cl1,2002.2251.1888.23
Plugins /wp-admin/admin.php?page=azc-plugin-menus1,0912.0953.5765.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • azc_cl

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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=azc-cl
    • > Notice in wp-content/plugins/azurecurve-conditional-links/azurecurve-conditional-page-links.php+174
    Trying to access array offset on value of type bool

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
Please fix the following
  • 1× 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-conditional-links/azurecurve-conditional-page-links.php:37

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: page, links, pages, shortcode

azurecurve-conditional-links/azurecurve-conditional-page-links.php 69% from 13 tests

The principal PHP file in "azurecurve Conditional Page Links" v. 2.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("azurecurve-conditional-links.php" instead of "azurecurve-conditional-page-links.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected471 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27357450
CSS20421

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%