84% gp-remove-projects-from-breadcrumbs

Code Review | GP Remove Projects from Breadcrumbs

WordPress plugin GP Remove Projects from Breadcrumbs scored84%from 54 tests.

About plugin

  • Plugin page: gp-remove-project...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Apr 17, 2023
  • Number of updates: 21
  • Update frequency: every 127.6 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,105 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
Installer ran successfully

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

Server-side resources used by GP Remove Projects from Breadcrumbs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.92 ▲4.80
Dashboard /wp-admin3.31 ▲0.0049.36 ▲0.58
Posts /wp-admin/edit.php3.36 ▲0.0046.77 ▼3.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.71 ▼6.65
Media Library /wp-admin/upload.php3.23 ▲0.0038.15 ▼2.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by GP Remove Projects from Breadcrumbs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.131.84 ▼0.0544.43 ▼3.15
Dashboard /wp-admin2,221 ▲244.87 ▼0.07102.93 ▼4.4538.66 ▼8.93
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0035.09 ▼2.8933.95 ▼5.05
Add New Post /wp-admin/post-new.php1,545 ▼14323.11 ▼1.01677.81 ▲58.1260.51 ▲5.72
Media Library /wp-admin/upload.php1,400 ▲64.27 ▲0.04109.02 ▼7.8249.08 ▲3.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-remove-projects-from-breadcrumbs/gp-remove-projects-from-breadcrumbs.php:106

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
2 plugin tags: glotpress, translation

gp-remove-projects-from-breadcrumbs/gp-remove-projects-from-breadcrumbs.php Passed 13 tests

The main PHP script in "GP Remove Projects from Breadcrumbs" version 1.0 is automatically included on every request by WordPress
60 characters long description:
Remove the "Projects" link from the breadcrumbs in GlotPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1272165

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin