84% ultimate-post-list

Code Review | Ultimate Post List

WordPress plugin Ultimate Post List scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-post-list
  • Plugin version: 5.2.7.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2016
  • Latest release: Feb 21, 2023
  • Number of updates: 92
  • Update frequency: every 27.2 days
  • Top authors: Hinjiriyo (85.87%)kybernetikservices (15.22%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /55,011 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.05MB] [CPU: ▼11.27ms] Passed 4 tests

An overview of server-side resources used by Ultimate Post List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.84 ▼5.38
Dashboard /wp-admin3.36 ▲0.0244.75 ▼18.61
Posts /wp-admin/edit.php3.48 ▲0.1248.19 ▼5.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.44 ▼15.38
Media Library /wp-admin/upload.php3.29 ▲0.0633.97 ▼2.51
Add New /wp-admin/post-new.php?post_type=upl_post_list4.1050.54
Help /wp-admin/edit.php?post_type=upl_post_list&page=upl-help-page3.3233.54
All Lists /wp-admin/edit.php?post_type=upl_post_list3.3345.27

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_ultimate-post-list
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Post List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15713.52 ▼0.858.39 ▲6.5739.55 ▼7.71
Dashboard /wp-admin2,217 ▲375.63 ▼0.01111.63 ▲13.7351.92 ▲8.88
Posts /wp-admin/edit.php2,131 ▲282.03 ▲0.0237.82 ▼5.9132.88 ▼9.33
Add New Post /wp-admin/post-new.php1,549 ▲2321.46 ▼2.03694.67 ▲4.4964.09 ▲8.81
Media Library /wp-admin/upload.php1,425 ▲254.24 ▲0.07100.58 ▼4.9942.53 ▼4.89
Add New /wp-admin/post-new.php?post_type=upl_post_list3,1132.9461.3442.92
Help /wp-admin/edit.php?post_type=upl_post_list&page=upl-help-page1,0081.9928.6127.23
All Lists /wp-admin/edit.php?post_type=upl_post_list1,1792.2236.5031.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-post-list/admin/partials/section-footer.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-post-list/includes/class-Ultimate_Post_List_Widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ultimate-post-list/admin/partials/page-overview.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-post-list/admin/partials/widget-form.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

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
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

ultimate-post-list/ultimate-post-list.php Passed 13 tests

"Ultimate Post List" version 5.2.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Make up custom-tailored preview lists of the contents easily and place them in widget areas and post contents.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,285 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP154801,3652,964
PO File24044561,238
JavaScript4111644
CSS17039

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity44.67
▷ Minimum class complexity1.00
▷ Maximum class complexity174.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods78
▷ Static methods2835.90%
▷ Public methods5469.23%
▷ Protected methods00.00%
▷ Private methods2430.77%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.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
PNG images were not found in this plugin