84% ultimate-custom-posts

Code Review | Ultimate Custom Posts

WordPress plugin Ultimate Custom Posts scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-custom-p...
  • Plugin version: 3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: Aug 14, 2020
  • Number of updates: 32
  • Update frequency: every 1.2 days
  • Top authors: jatinder199217 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.77ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Custom Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0528.02 ▼23.56
Dashboard /wp-admin3.37 ▲0.0353.00 ▲1.22
Posts /wp-admin/edit.php3.49 ▲0.0951.58 ▲1.21
Add New Post /wp-admin/post-new.php5.96 ▲0.0385.04 ▼9.93
Media Library /wp-admin/upload.php3.30 ▲0.0339.03 ▲3.36

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Custom Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.01 ▼0.202.08 ▲0.4144.51 ▲0.51
Dashboard /wp-admin2,218 ▲385.58 ▼0.0588.08 ▼0.6740.46 ▲1.80
Posts /wp-admin/edit.php2,120 ▲201.98 ▼0.0337.21 ▲0.8434.57 ▲1.04
Add New Post /wp-admin/post-new.php1,543 ▲1722.63 ▼0.28687.56 ▲2.5659.20 ▲5.62
Media Library /wp-admin/upload.php1,423 ▲264.23 ▲0.03103.39 ▼2.9743.98 ▼5.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-custom-posts/ultimate-custom-posts.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt might help

ultimate-custom-posts/ultimate-custom-posts.php Passed 13 tests

The primary PHP file in "Ultimate Custom Posts" version 3.0 is used by WordPress to initiate all plugin functionality
52 characters long description:
You can show custom post type posts with this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected703 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS51515558
PHP14142145

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/ultimate-posts-plugin.png125.72KB55.97KB▼ 55.48%