10% brozzme-material-loading

Code Review | Brozzme Material Loading

WordPress plugin Brozzme Material Loading scored10%from 54 tests.

About plugin

  • Plugin page: brozzme-material-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Oct 28, 2021
  • Number of updates: 26
  • Update frequency: every 76.8 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,798 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/brozzme-material-loading/brozzme_material_loading.php+116
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.05ms] Passed 4 tests

An overview of server-side resources used by Brozzme Material Loading
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.84 ▼6.77
Dashboard /wp-admin3.44 ▲0.1462.63 ▲7.93
Posts /wp-admin/edit.php3.56 ▲0.2048.83 ▼0.82
Add New Post /wp-admin/post-new.php6.04 ▲0.1690.66 ▼9.75
Media Library /wp-admin/upload.php3.37 ▲0.1435.28 ▲5.16
Material loading /wp-admin/options-general.php?page=brozzme-material-loading3.3431.82

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
b_material_general_settings
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Brozzme Material Loading
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲9314.44 ▼0.117.34 ▲5.1740.45 ▼3.67
Dashboard /wp-admin2,221 ▲505.79 ▲0.1487.04 ▼13.2138.71 ▼4.00
Posts /wp-admin/edit.php2,128 ▲252.30 ▲0.3038.09 ▼3.0234.05 ▲2.40
Add New Post /wp-admin/post-new.php1,543 ▲1723.36 ▼0.33626.57 ▼68.9634.00 ▼13.88
Media Library /wp-admin/upload.php1,420 ▲234.36 ▲0.2699.28 ▼4.1045.19 ▲0.27
Material loading /wp-admin/options-general.php?page=brozzme-material-loading1,2172.6051.2337.48

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • b_material_general_settings
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=brozzme-material-loading
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brozzme-material-loading/includes/brozzme_material_loading_settings.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (20 tag instead of maximum 10)
You can look at the official readme.txt

brozzme-material-loading/brozzme_material_loading.php 92% from 13 tests

"Brozzme Material Loading" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("brozzme-material-loading.php" instead of "brozzme_material_loading.php")

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 detected1,554 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4218321,541
CSS1507
JavaScript2356

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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