78% littlebits

Code Review | littleBits

WordPress plugin littleBits scored78%from 54 tests.

About plugin

  • Plugin page: littlebits
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: May 16, 2015
  • Number of updates: 13
  • Update frequency: every 1.8 days
  • Top authors: wetpaintweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /901 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.30ms] Passed 4 tests

Analyzing server-side resources used by littleBits
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.06 ▼4.26
Dashboard /wp-admin3.37 ▲0.0651.80 ▼0.41
Posts /wp-admin/edit.php3.48 ▲0.1255.76 ▲3.09
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.41 ▼7.61
Media Library /wp-admin/upload.php3.29 ▲0.0642.34 ▲9.77
littleBits /wp-admin/tools.php?page=littlebits_settings3.2532.03

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/littlebits/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by littleBits
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.17 ▼1.411.65 ▼0.2241.80 ▼1.27
Dashboard /wp-admin2,225 ▲315.88 ▼0.14107.33 ▼4.6240.53 ▼1.14
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0141.48 ▲6.3136.60 ▲4.43
Add New Post /wp-admin/post-new.php1,548 ▲1723.08 ▼0.11683.60 ▼44.4253.22 ▼8.21
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.02111.56 ▲1.3248.22 ▲1.56
littleBits /wp-admin/tools.php?page=littlebits_settings8812.0224.2026.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=littlebits_settings
    • > Notice in wp-content/plugins/littlebits/admin/class-littlebits-admin.php+94
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/littlebits/admin/partials/littlebits-admin-display.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === littlebits === )
You can look at the official readme.txt

littlebits/littlebits.php Passed 13 tests

This is the main PHP file of "littleBits" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin230 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9103430230

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin