89% wp-custom-lists

Code Review | wp custom lists

WordPress plugin wp custom lists scored89%from 54 tests.

About plugin

  • Plugin page: wp-custom-lists
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Sep 18, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sevy29 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,219 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
Installer ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼20.88ms] Passed 4 tests

An overview of server-side resources used by wp custom lists
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.70 ▼3.69
Dashboard /wp-admin3.39 ▲0.0544.89 ▼17.47
Posts /wp-admin/edit.php3.50 ▲0.1546.36 ▲0.97
Add New Post /wp-admin/post-new.php3.24 ▼2.6535.81 ▼63.27
Media Library /wp-admin/upload.php3.32 ▲0.0935.20 ▲0.90
Lists /wp-admin/admin.php?page=custom-list3.3332.79
New list /wp-admin/admin.php?page=list-new3.2932.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by wp custom lists
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11113.23 ▼1.421.87 ▲0.0438.67 ▼3.11
Dashboard /wp-admin2,238 ▲594.90 ▼0.96106.90 ▼9.6735.70 ▼9.34
Posts /wp-admin/edit.php2,121 ▲322.04 ▲0.0339.97 ▲1.8134.61 ▼6.51
Add New Post /wp-admin/post-new.php1,542 ▼423.48 ▲5.16604.31 ▼44.8760.49 ▼0.24
Media Library /wp-admin/upload.php1,420 ▲294.28 ▲0.0495.07 ▼3.2542.02 ▼4.30
Lists /wp-admin/admin.php?page=custom-list9191.8425.5326.17
New list /wp-admin/admin.php?page=list-new8221.7124.6728.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (settings), #2 (lists), #3 (shortcode)
You can take inspiration from this readme.txt

wp-custom-lists/lists.php 92% from 13 tests

The main file in "wp custom lists" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-custom-lists.php" instead of "lists.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected685 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5288233506
PO File14050100
JavaScript229574
CSS1005

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.25
Average class complexity13.00
▷ Minimum class complexity9.00
▷ Maximum class complexity17.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png4.02KB2.75KB▼ 31.69%
screenshot-2.png10.97KB5.91KB▼ 46.11%
screenshot-1.png11.13KB5.92KB▼ 46.77%