78% azurecurve-breadcrumbs

Code Review | azurecurve Breadcrumbs

WordPress plugin azurecurve Breadcrumbs scored78%from 54 tests.

About plugin

  • Plugin page: azurecurve-breadc...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Dec 13, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.06ms] Passed 4 tests

Analyzing server-side resources used by azurecurve Breadcrumbs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.46 ▲0.39
Dashboard /wp-admin3.40 ▲0.1047.58 ▼1.47
Posts /wp-admin/edit.php3.45 ▲0.1050.41 ▲0.43
Add New Post /wp-admin/post-new.php5.98 ▲0.1083.29 ▼8.15
Media Library /wp-admin/upload.php3.32 ▲0.0933.87 ▼3.01
Breadcrumbs /wp-admin/admin.php?page=azc-b3.2628.69
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2928.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for azurecurve Breadcrumbs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.26 ▼1.124.15 ▲2.1642.21 ▼3.32
Dashboard /wp-admin2,237 ▲464.84 ▼0.0796.30 ▼3.9574.21 ▲32.35
Posts /wp-admin/edit.php2,123 ▲312.02 ▲0.0237.17 ▼5.4535.75 ▲0.51
Add New Post /wp-admin/post-new.php1,543 ▲2923.16 ▲5.81756.98 ▲61.0551.17 ▲2.18
Media Library /wp-admin/upload.php1,413 ▲284.23 ▼0.0099.39 ▼19.2348.24 ▲1.53
Breadcrumbs /wp-admin/admin.php?page=azc-b9882.0625.2630.69
Plugins /wp-admin/admin.php?page=azc-plugin-menus8552.0224.5828.81

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • azc-b
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=azc-b
    • > Notice in wp-content/plugins/azurecurve-breadcrumbs/azurecurve-breadcrumbs.php+354
    Undefined index: show-on-homepage

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× 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/azurecurve-breadcrumbs/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-breadcrumbs/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: breadcrumbs, wordpress, page, pages, classicpress

azurecurve-breadcrumbs/azurecurve-breadcrumbs.php 77% from 13 tests

The main PHP script in "azurecurve Breadcrumbs" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected556 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27553540
CSS20416

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%