94% prime-strategy-bread-crumb

Code Review | Prime Strategy Bread Crumb

WordPress plugin Prime Strategy Bread Crumb scored 94% from 54 tests.

About plugin

  • Plugin page: prime-strategy-br...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.0.3
  • WordPress version: 5.8.1
  • First release: Aug 18, 2011
  • Latest release: Feb 12, 2019
  • Number of updates: 18
  • Update frequency: every 152.5 days
  • Top authors: jim912 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active / 72,762 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼140.11ms] Passed 4 tests

A check of server-side resources used by Prime Strategy Bread Crumb
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0032.72 ▲1.00
Dashboard /wp-admin3.06 ▲0.0144.76 ▲6.46
Posts /wp-admin/edit.php3.11 ▲0.0043.49 ▲4.25
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.62 ▼559.31
Media Library /wp-admin/upload.php3.00 ▼0.0131.17 ▼6.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Prime Strategy Bread Crumb
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.14 ▲0.589.06 ▲1.0346.37 ▼2.07
Dashboard /wp-admin2,970 ▲395.87 ▼0.03132.92 ▼4.83114.22 ▼0.73
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0063.56 ▼1.3190.13 ▼8.87
Add New Post /wp-admin/post-new.php1,672 ▲219.15 ▼0.04391.55 ▲1.11109.69 ▲1.20
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.03156.31 ▲11.55109.83 ▼13.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prime-strategy-bread-crumb/prime-strategy-bread-crumb.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
2 plugin tags: topic path, breadcrumb

prime-strategy-bread-crumb/prime-strategy-bread-crumb.php 85% from 13 tests

The principal PHP file in "Prime Strategy Bread Crumb" v. 1.0.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 231 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin413 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24213361
PO File1151452

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity88.00
▷ Minimum class complexity88.00
▷ Maximum class complexity88.00
Average method complexity10.67
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected