79% trailblaze

Code Review | Trailblaze

WordPress plugin Trailblaze scored79%from 54 tests.

About plugin

  • Plugin page: trailblaze
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: May 2, 2016
  • Number of updates: 28
  • Update frequency: every 37.3 days
  • Top authors: wearepixel8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Trailblaze
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1046.23 ▲7.03
Dashboard /wp-admin3.42 ▲0.1147.39 ▼0.66
Posts /wp-admin/edit.php3.47 ▲0.1150.29 ▲5.83
Add New Post /wp-admin/post-new.php6.00 ▲0.1188.26 ▼19.42
Media Library /wp-admin/upload.php3.34 ▲0.1140.49 ▲3.40
Trailblaze /wp-admin/options-general.php?page=wap8-trailblaze-options3.2834.41

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Trailblaze
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.16 ▼0.192.09 ▲0.2841.72 ▼4.14
Dashboard /wp-admin2,202 ▲255.60 ▲0.0282.22 ▼8.0037.99 ▼2.27
Posts /wp-admin/edit.php2,101 ▼22.10 ▲0.1235.67 ▲0.4332.49 ▼5.44
Add New Post /wp-admin/post-new.php1,531 ▲323.02 ▼0.07694.09 ▲20.4954.42 ▼14.66
Media Library /wp-admin/upload.php1,404 ▲44.07 ▼0.12113.57 ▲1.2149.25 ▲2.24
Trailblaze /wp-admin/options-general.php?page=wap8-trailblaze-options8732.0123.4332.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wap8-trailblaze-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wap8-trailblaze-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please 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/trailblaze/includes/trailblaze-options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/trailblaze/trailblaze.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: navigation, menu, breadcrumbs, breadcrumb

trailblaze/trailblaze.php Passed 13 tests

Analyzing the main PHP file in "Trailblaze" version 1.1.1
88 characters long description:
Add breadcrumb navigation to your post, pages and custom post types with a template tag.

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
Good job! No executable or dangerous file extensions detected472 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3219249387
PO File1284485

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin