83% ub-ultimate-post-list

Code Review | UB Ultimate Post List

WordPress plugin UB Ultimate Post List scored83%from 54 tests.

About plugin

  • Plugin page: ub-ultimate-post-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2020
  • Latest release: Jun 8, 2020
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: umang7 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /414 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.59MB] [CPU: ▼14.02ms] Passed 4 tests

An overview of server-side resources used by UB Ultimate Post List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.27 ▲5.17
Dashboard /wp-admin3.39 ▲0.0846.88 ▼0.36
Posts /wp-admin/edit.php3.52 ▲0.1649.61 ▲2.36
Add New Post /wp-admin/post-new.php3.26 ▼2.6333.75 ▼61.15
Media Library /wp-admin/upload.php3.32 ▲0.0939.23 ▲3.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by UB Ultimate Post List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20720.39 ▲6.125.56 ▲3.9144.17 ▲2.52
Dashboard /wp-admin2,291 ▲11710.55 ▲4.97255.53 ▲168.8644.32 ▲3.35
Posts /wp-admin/edit.php2,192 ▲929.50 ▲7.5592.90 ▲54.7332.69 ▼1.57
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.61 ▲4.01758.66 ▲99.0640.55 ▼18.15
Media Library /wp-admin/upload.php1,514 ▲11411.01 ▲6.71137.83 ▲33.7361.54 ▲15.06

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ub-ultimate-post-list/public/partials/ub-ultimate-post-list-public-display.php
    • > /wp-content/plugins/ub-ultimate-post-list/admin/partials/ub-ultimate-post-list-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: A description for screenshot #3 is required in ub-ultimate-post-list/assets to your readme.txt
  • Donate link: Invalid URI found ("paypal.me/Bhanavadiya")
Please take inspiration from this readme.txt

ub-ultimate-post-list/ub-ultimate-post-list.php 92% from 13 tests

The main PHP file in "UB Ultimate Post List" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

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
Success! There were no dangerous files found in this plugin9,645 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,566
JavaScript64684638
PHP12133534372
CSS261169

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin