84% labelbaker

Code Review | LabelBaker - Advanced Label Design & Generator

WordPress plugin LabelBaker - Advanced Label Design & Generator scored84%from 54 tests.

About plugin

  • Plugin page: labelbaker
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2023
  • Latest release: Nov 26, 2023
  • Number of updates: 29
  • Update frequency: every 6.1 days
  • Top authors: prappo_p (62.07%)wpcox (41.38%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 total downloads

Benchmarks

Plugin footprint 83% from 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.20MB] [CPU: ▼4.77ms] Passed 4 tests

An overview of server-side resources used by LabelBaker - Advanced Label Design & Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.28 ▼4.60
Dashboard /wp-admin3.55 ▲0.2446.67 ▼2.66
Posts /wp-admin/edit.php3.60 ▲0.2447.47 ▼0.12
Add New Post /wp-admin/post-new.php6.09 ▲0.2091.05 ▼11.71
Media Library /wp-admin/upload.php3.41 ▲0.1837.85 ▲6.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 228 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by LabelBaker - Advanced Label Design & Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7914.24 ▼0.141.68 ▼0.0140.14 ▼4.75
Dashboard /wp-admin2,246 ▲695.65 ▲0.1294.45 ▼8.5841.84 ▼3.99
Posts /wp-admin/edit.php2,155 ▲552.04 ▲0.1041.30 ▲0.0636.79 ▼2.75
Add New Post /wp-admin/post-new.php1,536 ▲1123.20 ▼0.36599.85 ▼10.0556.96 ▲9.70
Media Library /wp-admin/upload.php1,451 ▲544.22 ▲0.0996.11 ▼5.9439.63 ▼5.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/banner.php on line 5
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/cleanup.php on line 5
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/api.php on line 5
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/menu.php on line 5
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/featured-image.php on line 5
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/assets.php on line 5
    • > PHP Fatal error
      Trait 'LabelBaker\\BaseTrait' not found in wp-content/plugins/labelbaker/includes/popup.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in labelbaker/assets to your readme.txt
The official readme.txt is a good inspiration

labelbaker/labelbaker.php Passed 13 tests

"LabelBaker - Advanced Label Design & Generator" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
19 characters long description:
Make labels easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,151 lines of code in 221 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222368874
SVG4130698
JavaScript15427407520
CSS148559

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.90
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods52
▷ Static methods23.85%
▷ Public methods5198.08%
▷ Protected methods00.00%
▷ Private methods11.92%
Functions21
▷ Named functions942.86%
▷ Anonymous functions1257.14%
Constants7
▷ Global constants7100.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
There are no PNG files in this plugin