89% base-item-list

Code Review | BASE Item List

WordPress plugin BASE Item List scored89%from 54 tests.

About plugin

  • Plugin page: base-item-list
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 18, 2015
  • Latest release: Apr 6, 2023
  • Number of updates: 38
  • Update frequency: every 70.2 days
  • Top authors: mt8.biz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /8,220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼17.12ms] Passed 4 tests

An overview of server-side resources used by BASE Item List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.85 ▼5.31
Dashboard /wp-admin3.42 ▲0.0853.61 ▼34.70
Posts /wp-admin/edit.php3.54 ▲0.1850.72 ▼2.03
Add New Post /wp-admin/post-new.php6.00 ▲0.1285.71 ▼26.45
Media Library /wp-admin/upload.php3.35 ▲0.1239.14 ▲3.05
BASE Item List /wp-admin/admin.php?page=base_item_list3.3135.06
API設定 /wp-admin/admin.php?page=base_item_list_setting3.3136.42

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for BASE Item List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.031.67 ▼0.2641.00 ▼4.03
Dashboard /wp-admin2,225 ▲485.64 ▲0.0485.79 ▼3.5943.39 ▲4.36
Posts /wp-admin/edit.php2,124 ▲241.99 ▼0.0436.71 ▼4.1236.92 ▼1.63
Add New Post /wp-admin/post-new.php1,548 ▲2223.22 ▲0.30670.23 ▲34.2655.81 ▼3.94
Media Library /wp-admin/upload.php1,430 ▲274.16 ▼0.0395.08 ▼12.4347.13 ▲3.20
BASE Item List /wp-admin/admin.php?page=base_item_list1,1092.0327.08105.57
API設定 /wp-admin/admin.php?page=base_item_list_setting1,1122.0025.7177.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: base, shortcode, ec

base-item-list/plugin.php 92% from 13 tests

"BASE Item List" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("base-item-list.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected693 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP611366630
PO File1101433
CSS10030

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.25
▷ Minimum class complexity8.00
▷ Maximum class complexity18.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1045.45%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.53MB with 0.40MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/api-apply.png546.44KB132.85KB▼ 75.69%