94% azurecurve-get-plugin-info

Code Review | azurecurve Get Plugin Info

WordPress plugin azurecurve Get Plugin Info scored 94% from 54 tests.

About plugin

  • Plugin page: azurecurve-get-pl...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.0.0
  • WordPress version: 5.8.1
  • First release: Aug 12, 2018
  • Latest release: Dec 6, 2018
  • Number of updates: 6
  • Update frequency: every 19.3 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 533 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼141.14ms] Passed 4 tests

This is a short check of server-side resources used by azurecurve Get Plugin Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.1138.69 ▲1.59
Dashboard /wp-admin3.17 ▲0.1147.66 ▲0.02
Posts /wp-admin/edit.php3.25 ▲0.1546.56 ▲2.70
Add New Post /wp-admin/post-new.php5.53 ▲0.0999.49 ▼566.62
Media Library /wp-admin/upload.php3.11 ▲0.1135.86 ▲0.47
Get Plugin Info /wp-admin/admin.php?page=azc-gpi3.0834.90
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.0832.49

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

azurecurve Get Plugin Info: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲14515.82 ▲0.2810.04 ▲0.8549.25 ▼1.13
Dashboard /wp-admin2,996 ▲655.95 ▼0.16149.42 ▼21.25147.83 ▲23.05
Posts /wp-admin/edit.php2,790 ▲512.69 ▼0.0170.55 ▼0.2295.82 ▼4.10
Add New Post /wp-admin/post-new.php1,707 ▲2418.80 ▲0.03421.97 ▲17.06124.68 ▲7.87
Media Library /wp-admin/upload.php1,787 ▼205.01 ▲0.03135.67 ▼29.35161.55 ▲35.47
Get Plugin Info /wp-admin/admin.php?page=azc-gpi1,2972.0960.93101.53
Plugins /wp-admin/admin.php?page=azc-plugin-menus1,1222.0856.6984.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-get-plugin-info/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-get-plugin-info/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: classicpress, shortcode, wordpress, info, plugin...

azurecurve-get-plugin-info/azurecurve-get-plugin-info.php 85% from 13 tests

The entry point to "azurecurve Get Plugin Info" version 2.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin853 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP212419825
CSS21528

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions31
▷ Named functions31100.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/star.png0.65KB0.72KB0.00%
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%
images/greystar.png0.58KB0.58KB0.34%