77% ultimate-post

Code Review | Post Grid Gutenberg Blocks and WordPress Blog Plugin - PostX

WordPress plugin Post Grid Gutenberg Blocks and WordPress Blog Plugin - PostX scored77%from 54 tests.

About plugin

  • Plugin page: ultimate-post
  • Plugin version: 3.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2019
  • Latest release: Nov 26, 2023
  • Number of updates: 173
  • Update frequency: every 8.5 days
  • Top authors: wpxpo (100%)

Code review

54 tests

User reviews

177 reviews

Install metrics

30,000+ active /1,347,873 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲4.95MB] [CPU: ▲33.45ms] Passed 4 tests

This is a short check of server-side resources used by Post Grid Gutenberg Blocks and WordPress Blog Plugin - PostX
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.47 ▲5.0171.47 ▲32.94
Dashboard /wp-admin8.22 ▲4.9283.63 ▲33.47
Posts /wp-admin/edit.php8.34 ▲4.9878.45 ▲34.96
Add New Post /wp-admin/post-new.php11.22 ▲5.33121.39 ▲34.93
Media Library /wp-admin/upload.php8.12 ▲4.9070.50 ▲32.46
Upgrade to Pro /wp-admin/admin.php?page=go_postx_pro7.8948.34
Getting Started /wp-admin/admin.php?page=ultp-settings8.1472.67
Initial Setup /wp-admin/admin.php?page=ultp-initial-setup-wizard8.1180.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 552 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
ultp_options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics 50% from 4 tests

An overview of browser requirements for Post Grid Gutenberg Blocks and WordPress Blog Plugin - PostX
You may want to improve the following
  • Memory: Browser memory usage must be limited to 75.00MB (currently 95.29MB on /wp-admin/admin.php?page=ultp-settings#tutorials)
  • Script duration: JavaScript execution time must be kept under 1,500.00ms (currently 2,350.19ms on /wp-admin/admin.php?page=ultp-settings#tutorials)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,149 ▲38714.65 ▲0.302.00 ▲0.1117.19 ▼24.46
Dashboard /wp-admin2,511 ▲3476.52 ▲0.96112.60 ▲11.0787.34 ▲50.21
Posts /wp-admin/edit.php2,512 ▲4153.66 ▲1.6456.63 ▲18.1297.41 ▲62.85
Add New Post /wp-admin/post-new.php6,446 ▲4,91530.32 ▲7.151,094.58 ▲511.8771.33 ▲19.30
Media Library /wp-admin/upload.php1,582 ▲1824.47 ▲0.2987.56 ▼14.8887.66 ▲36.58
Site Builder /wp-admin/admin.php?page=ultp-settings#builder2,6699.08255.9383.74
Addons /wp-admin/admin.php?page=ultp-settings#addons2,7099.76137.4565.11
Template Kits /wp-admin/admin.php?page=ultp-settings#templatekit2,6259.19118.25105.35
Settings /wp-admin/admin.php?page=ultp-settings#settings1,9929.51101.5655.18
Custom Font /wp-admin/admin.php?page=ultp-settings#custom-font1,9209.58103.7746.72
Upgrade to Pro /wp-admin/admin.php?page=go_postx_pro3,9787.11312.22208.03
Getting Started /wp-admin/admin.php?page=ultp-settings2,18719.62392.4890.38
License /wp-admin/admin.php?page=ultp-settings#license1,7169.00109.3355.67
Tutorials /wp-admin/admin.php?page=ultp-settings#tutorials8,87095.292,350.1985.18
Initial Setup /wp-admin/admin.php?page=ultp-initial-setup-wizard1,9964.52107.2754.51

Uninstaller [IO: ▲0.14MB] [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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • ultp_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'OxyEl' not found in wp-content/plugins/ultimate-post/addons/oxygen/oxygen.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-post/addons/beaver_builder/includes/frontend.php:2
    • > PHP Notice
      Trying to get property 'template' of non-object in wp-content/plugins/ultimate-post/addons/beaver_builder/includes/frontend.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/ultimate-post/addons/beaver_builder/beaverbuilder.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ultimate-post/addons/wpbakery/wpbakery.php:11
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/ultimate-post/addons/beaver_builder/includes/frontend.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-post/addons/divi/divi.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ultp-initial-setup-wizard
    • > Deprecation (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=go_postx_pro
    • > Javascript (severe) in unknown
    https://www.wpxpo.com/postx/pricing/?utm_source=postx-main_menu&utm_medium=upgrade_to_pro&utm_campaign=postx-dashboard 277:19620 Uncaught SyntaxError: Identifier 'litespeed_ui_events' has already been declared
    • > GET request to /wp-admin/admin.php?page=go_postx_pro
    • > Javascript (severe) in unknown
    https://www.wpxpo.com/wp-content/litespeed/js/4cfecdc98732eb522154187843958aae.js?ver=927a1 0:0 Uncaught SyntaxError: Identifier 'yearly' has already been declared

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: gutenberg blocks, news ticker, recent posts, wordpress blog plugin, magazine plugin...

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

The entry point to "Post Grid Gutenberg Blocks and WordPress Blog Plugin - PostX" version 3.1.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 486 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin23,077 lines of code in 401 files:
LanguageFilesBlank linesComment linesLines of code
PHP891,8312,97716,367
JavaScript119772293,703
SVG295951,734
CSS61195311,273

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 238)
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity52.03
▷ Minimum class complexity1.00
▷ Maximum class complexity714.00
Average method complexity8.80
▷ Minimum method complexity1.00
▷ Maximum method complexity238.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes61
▷ Abstract classes00.00%
▷ Concrete classes61100.00%
▷ Final classes11.64%
Methods404
▷ Static methods102.48%
▷ Public methods40299.50%
▷ Protected methods20.50%
▷ Private methods00.00%
Functions57
▷ Named functions2543.86%
▷ Anonymous functions3256.14%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
130 PNG files occupy 0.73MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/layouts/pl2/l1.png0.18KB0.17KB▼ 3.30%
assets/img/layouts/pg1/s1.png0.68KB0.31KB▼ 54.73%
assets/img/layouts/taxonomy/l2.png0.55KB0.50KB▼ 8.41%
assets/img/layouts/toc/toc5.png2.28KB1.06KB▼ 53.39%
assets/img/wizard/play.png49.51KB17.47KB▼ 64.71%