84% btb-full-width-section

Code Review | BTB Full Width Section

WordPress plugin BTB Full Width Section scored 84% from 54 tests.

About plugin

  • Plugin page: btb-full-width-se...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2022
  • Latest release: Oct 1, 2022
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: birkblauner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲3.60ms] Passed 4 tests

An overview of server-side resources used by BTB Full Width Section
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.84 ▲0.64
Dashboard /wp-admin3.32 ▲0.0255.50 ▲0.81
Posts /wp-admin/edit.php3.37 ▲0.0255.37 ▲8.08
Add New Post /wp-admin/post-new.php5.90 ▲0.02112.63 ▲23.12
Media Library /wp-admin/upload.php3.24 ▲0.0243.71 ▲4.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by BTB Full Width Section
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲1413.22 ▼1.524.84 ▲2.7939.34 ▼5.94
Dashboard /wp-admin2,209 ▲34.87 ▲0.02110.42 ▼2.3742.80 ▼0.71
Posts /wp-admin/edit.php2,089 ▲31.97 ▼0.0539.46 ▲3.9434.95 ▲3.01
Add New Post /wp-admin/post-new.php1,643 ▲12320.97 ▼2.54772.89 ▲89.5160.84 ▲7.34
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0895.78 ▼14.8860.29 ▲12.56

Uninstaller [IO: ✅] [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-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 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/btb-full-width-section/btb-full-width-section.php:27

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: block, design

btb-full-width-section/btb-full-width-section.php Passed 13 tests

"BTB Full Width Section" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
25 characters long description:
Full width Section block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin28,792 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSON40028,406
JavaScript41871244
Sass219187
PO File1121243
PHP242310
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.99MB with 0.69MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png1,008.80KB297.43KB▼ 70.52%