84% lubuntu-sidebar-lite

Code Review | Lubuntu sidebar lite

WordPress plugin Lubuntu sidebar lite scored84%from 54 tests.

About plugin

  • Plugin page: lubuntu-sidebar-lite
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2015
  • Latest release: Jan 30, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: zpop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /686 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼12.84ms] Passed 4 tests

Server-side resources used by Lubuntu sidebar lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.68 ▼5.08
Dashboard /wp-admin3.31 ▼0.0443.07 ▼18.78
Posts /wp-admin/edit.php3.36 ▲0.0042.20 ▼8.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.87 ▼19.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.52 ▲1.78

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lubuntu sidebar lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10914.43 ▼0.051.85 ▼0.0937.97 ▼3.42
Dashboard /wp-admin2,206 ▲175.77 ▼0.1698.15 ▼4.8837.19 ▼7.52
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0139.49 ▼1.4335.06 ▼0.51
Add New Post /wp-admin/post-new.php1,540 ▲723.40 ▲0.39656.06 ▲55.3556.64 ▲3.13
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.0695.45 ▼0.5639.57 ▼2.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lubuntu-sidebar-lite/lubuntu-sidebar-lite.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (What the plugin looks like once installed on your blog or website.) image missing
You can look at the official readme.txt

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

The main PHP file in "Lubuntu sidebar lite" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
When activated, this plugin will put a Lubuntu sidebar lite on the right side of your website.

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
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191334

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/lubuntu-blog.png1.23KB0.79KB▼ 35.92%
images/download-lubuntu.png0.77KB0.44KB▼ 42.51%
images/lubuntu-net.png1.69KB1.06KB▼ 37.20%
screenshot-1.png49.03KB15.65KB▼ 68.08%
images/lubuntu-wiki.png1.56KB0.97KB▼ 37.73%