94% debian-sidebar-lite

Code Review | Debian sidebar lite

WordPress plugin Debian sidebar lite scored 94% from 54 tests.

About plugin

  • Plugin page: debian-sidebar-lite
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9.2
  • WordPress version: 5.8.1
  • First release: May 22, 2013
  • Latest release: Jan 30, 2015
  • Number of updates: 7
  • Update frequency: every 88.3 days
  • Top authors: zpop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 708 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Debian sidebar lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.22 ▲16.18
Dashboard /wp-admin3.06 ▲0.0145.71 ▲0.85
Posts /wp-admin/edit.php3.12 ▲0.0143.11 ▲2.10
Add New Post /wp-admin/post-new.php5.42 ▼0.0181.90 ▼580.97
Media Library /wp-admin/upload.php3.01 ▲0.0132.26 ▼0.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Debian sidebar lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,761 ▲16515.92 ▲0.608.88 ▼2.3049.21 ▲0.72
Dashboard /wp-admin2,970 ▲335.88 ▼0.09139.40 ▼16.49107.26 ▼4.26
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0162.04 ▼4.1777.75 ▼13.00
Add New Post /wp-admin/post-new.php1,683 ▼018.50 ▼0.19398.46 ▼2.12112.07 ▲9.96
Media Library /wp-admin/upload.php1,810 ▼05.02 ▼0.02145.86 ▼9.00112.97 ▼4.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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)
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debian-sidebar-lite/debian-sidebar-lite.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


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 to be fixed:
  • Screenshots: Screenshot #1 (What the plugin looks like once installed on your blog or website.) image missing
You can take inspiration from this readme.txt

debian-sidebar-lite/debian-sidebar-lite.php Passed 13 tests

This is the main PHP file of "Debian sidebar lite" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
93 characters long description:
When activated, this plugin will put a Debian sidebar lite on the right side of your website.

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
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
4 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/download-debian.png0.81KB0.44KB▼ 45.22%
images/debian-org.png1.75KB1.22KB▼ 30.17%
screenshot-1.png76.94KB29.94KB▼ 61.08%
images/why-debian.png1.29KB0.97KB▼ 24.62%