84% blipper-widget

Code Review | Blipper Widget

WordPress plugin Blipper Widget scored84%from 54 tests.

About plugin

  • Plugin page: blipper-widget
  • Plugin version: 1.2.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Apr 1, 2023
  • Number of updates: 135
  • Update frequency: every 19.9 days
  • Top authors: pandammonium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,042 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Blipper Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.28 ▼5.37
Dashboard /wp-admin3.31 ▲0.0050.26 ▼8.90
Posts /wp-admin/edit.php3.36 ▲0.0053.02 ▲2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.01 ▼21.00
Media Library /wp-admin/upload.php3.23 ▲0.0039.25 ▼1.09

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Blipper Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.491.83 ▼0.2542.00 ▼1.84
Dashboard /wp-admin2,189 ▲155.49 ▼0.0483.07 ▼23.5041.01 ▼3.85
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0341.45 ▼0.7038.88 ▲1.33
Add New Post /wp-admin/post-new.php1,529 ▼823.24 ▲4.85645.41 ▼6.0451.86 ▼20.93
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.0293.70 ▼11.5241.56 ▼4.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/blipper-widget/classes/class-widget.php on line 355

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: daily photo, shortcodes, image, blipfoto, images...

blipper-widget/blipper-widget.php Passed 13 tests

The primary PHP file in "Blipper Widget" version 1.2.3 is used by WordPress to initiate all plugin functionality
94 characters long description:
Display your latest blip in a widget. Requires a Blipfoto account (available free of charge).

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 plugin2,255 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP175519922,142
Markdown145066
XML10030
JSON10017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity21.07
▷ Minimum class complexity1.00
▷ Maximum class complexity219.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods88
▷ Static methods00.00%
▷ Public methods5865.91%
▷ Protected methods44.55%
▷ Private methods2629.55%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants10
▷ Global constants330.00%
▷ Class constants770.00%
▷ Public constants571.43%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin