84% libize

Code Review | Wp Libize

WordPress plugin Wp Libize scored84%from 54 tests.

About plugin

  • Plugin page: libize
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 4
  • Update frequency: every 20.8 days
  • Top authors: libize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /154 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.02MB] [CPU: ▼8.94ms] Passed 4 tests

An overview of server-side resources used by Wp Libize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.46 ▼12.75
Dashboard /wp-admin3.32 ▲0.0248.28 ▼6.53
Posts /wp-admin/edit.php3.37 ▲0.0251.02 ▼1.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.57 ▼14.96
Media Library /wp-admin/upload.php3.24 ▲0.0238.28 ▲4.88
Libize /wp-admin/options-general.php?page=wp-libize-settings3.2130.59

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Wp Libize
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.62 ▼0.755.01 ▲2.8840.12 ▼4.94
Dashboard /wp-admin2,211 ▲235.86 ▲0.06110.89 ▼10.3145.14 ▲2.23
Posts /wp-admin/edit.php2,097 ▲112.00 ▲0.0141.32 ▲1.6036.13 ▲0.50
Add New Post /wp-admin/post-new.php1,536 ▲323.16 ▲0.05661.21 ▼16.2362.01 ▲1.30
Media Library /wp-admin/upload.php1,390 ▲24.19 ▼0.03101.19 ▼3.5543.77 ▼2.54
Libize /wp-admin/options-general.php?page=wp-libize-settings7762.0125.3726.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/libize/public/partials/wp-libize-public-display.php
    • > /wp-content/plugins/libize/admin/partials/wp-libize-admin-display.php
    • > /wp-content/plugins/libize/wp-libize.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: productivity, scrap

libize/wp-libize.php 92% from 13 tests

The main file in "Wp Libize" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("libize.php" instead of "wp-libize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected231 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13135553225
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin