84% wp-ultimate-post-grid

Code Review | WP Ultimate Post Grid

WordPress plugin WP Ultimate Post Grid scored84%from 54 tests.

About plugin

  • Plugin page: wp-ultimate-post-...
  • Plugin version: 3.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 90
  • Update frequency: every 33.7 days
  • Top authors: BrechtVds (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

5,000+ active /137,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.53MB] [CPU: ▲10.57ms] Passed 4 tests

Server-side resources used by WP Ultimate Post Grid
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.89 ▲1.3947.54 ▲1.12
Dashboard /wp-admin4.96 ▲1.5867.96 ▼2.96
Posts /wp-admin/edit.php5.00 ▲1.6076.11 ▲28.86
Add New Post /wp-admin/post-new.php7.49 ▲1.56117.17 ▲18.33
Media Library /wp-admin/upload.php4.93 ▲1.6564.29 ▲25.79
Upgrade WPUPG /wp-admin/admin.php?page=wpupg_addons4.8459.06
Manage /wp-admin/admin.php?page=wpultimatepostgrid4.8453.89
Settings /wp-admin/admin.php?page=bv_settings_wpupg4.8454.54
Template Editor /wp-admin/admin.php?page=wpupg_template_editor4.9264.56
FAQ & Support /wp-admin/admin.php?page=wpupg_faq4.8456.24

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 380 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
wpupg_flush
wpupg_settings
widget_recent-comments
theysaidso_admin_options
db_upgraded
wpupg_migrated_to_version
widget_recent-posts
widget_theysaidso_widget
wpupg_activated

Browser metrics Passed 4 tests

Checking browser requirements for WP Ultimate Post Grid
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,294 ▲54823.38 ▲9.242.46 ▲0.6638.88 ▼5.97
Dashboard /wp-admin2,701 ▲52713.77 ▲8.24338.99 ▲248.8448.75 ▲8.48
Posts /wp-admin/edit.php2,796 ▲6969.74 ▲7.75178.11 ▲140.6141.83 ▲6.04
Add New Post /wp-admin/post-new.php6,852 ▲5,17329.54 ▲9.571,103.68 ▲461.0743.42 ▲0.14
Media Library /wp-admin/upload.php2,003 ▲60310.86 ▲6.59222.38 ▲124.6949.30 ▲6.54
Upgrade WPUPG /wp-admin/admin.php?page=wpupg_addons1,2377.69175.8534.19
Manage /wp-admin/admin.php?page=wpultimatepostgrid1,5748.55198.7061.59
Settings /wp-admin/admin.php?page=bv_settings_wpupg1,70210.15268.0857.35
Template Editor /wp-admin/admin.php?page=wpupg_template_editor1,2939.04239.9430.20
FAQ & Support /wp-admin/admin.php?page=wpupg_faq1,24510.08199.3646.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • wpupg_settings
    • wpupg_flush
    • widget_recent-comments
    • wpupg_migrated_to_version
    • wpupg_activated
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 66× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ultimate-post-grid/templates/settings/group-layout.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPUPG_Template_Shortcode' not found in wp-content/plugins/wp-ultimate-post-grid/includes/public/shortcodes/item/class-wpupg-sc-terms.php:20
    • > PHP Warning
      Use of undefined constant WPUPG_DIR - assumed 'WPUPG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ultimate-post-grid/includes/public/class-wpupg-template-shortcodes.php on line 67
    • > PHP Fatal error
      Uncaught Error: Class 'WPUPG_Template_Shortcode' not found in wp-content/plugins/wp-ultimate-post-grid/includes/public/shortcodes/item/class-wpupg-sc-excerpt.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WPUPG_Template_Shortcode' not found in wp-content/plugins/wp-ultimate-post-grid/includes/public/shortcodes/general/class-wpupg-sc-icon.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ultimate-post-grid/includes/public/class-wpupg-filter-isotope.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ultimate-post-grid/includes/admin/class-wpupg-notices.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-post-grid/includes/public/api/class-wpupg-api-grids.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-ultimate-post-grid/templates/admin/menu/addons.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-post-grid/includes/class-wpupg-i18n.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: grid, isotope, custom post type, filter

wp-ultimate-post-grid/wp-ultimate-post-grid.php Passed 13 tests

This is the main PHP file of "WP Ultimate Post Grid" version 3.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Easily create filterable responsive grids for your posts, pages or custom post types.

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
Good job! No executable or dangerous file extensions detected21,212 lines of code in 368 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1511,18846810,401
PHP841,3743,3657,126
Sass4437252,064
CSS1372291,518
SVG690069
HTML70034

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.60
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes00.00%
▷ Concrete classes68100.00%
▷ Final classes00.00%
Methods407
▷ Static methods23858.48%
▷ Public methods38795.09%
▷ Protected methods10.25%
▷ Private methods194.67%
Functions14
▷ Named functions321.43%
▷ Anonymous functions1178.57%
Constants8
▷ Global constants8100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-20x20.png1.44KB0.55KB▼ 62.10%
assets/images/icon-128x128.png3.88KB1.35KB▼ 65.16%