73% ultimate-classified-listings

Code Review | Ultimate Classified Listings

WordPress plugin Ultimate Classified Listings scored73%from 54 tests.

About plugin

  • Plugin page: ultimate-classifi...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2022
  • Latest release: Apr 11, 2023
  • Number of updates: 7
  • Update frequency: every 38.1 days
  • Top authors: webcodingplace (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,156 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: ▲0.83MB] [CPU: ▼2.84ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Classified Listings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.8842.75 ▼3.27
Dashboard /wp-admin4.16 ▲0.8247.46 ▼7.16
Posts /wp-admin/edit.php4.21 ▲0.8552.67 ▲9.68
Add New Post /wp-admin/post-new.php6.81 ▲0.9289.79 ▼8.99
Media Library /wp-admin/upload.php4.02 ▲0.7941.62 ▲8.08
Settings /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_settings3.8928.27
Fields Sections /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_sections3.8930.39
Fields Builder /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_builder3.8928.03
Sellers /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_sellers3.8929.80
Tags /wp-admin/edit-tags.php?taxonomy=uclwp_listing_tag&post_type=uclwp_listing4.0135.05
Categories /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing4.2845.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Classified Listings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,109 ▲34813.70 ▼0.8813.44 ▲11.5042.05 ▼7.85
Dashboard /wp-admin2,257 ▲805.78 ▲0.1184.15 ▼5.9238.13 ▼1.95
Posts /wp-admin/edit.php2,169 ▲662.40 ▲0.4138.10 ▼1.8334.41 ▲0.02
Add New Post /wp-admin/post-new.php1,575 ▲4723.73 ▲0.50703.58 ▲94.8461.13 ▲5.79
Media Library /wp-admin/upload.php1,465 ▲624.31 ▲0.0998.00 ▼1.8243.51 ▲0.36
Settings /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_settings280.420.083.77
Fields Sections /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_sections280.420.093.43
Fields Builder /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_builder280.420.093.73
Sellers /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_sellers280.420.063.35
Tags /wp-admin/edit-tags.php?taxonomy=uclwp_listing_tag&post_type=uclwp_listing1,3082.4128.8829.61
Categories /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing8,0592.4730.8251.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ultimate-classified-listings/templates/content-single/checkboxes.php
    • > /wp-content/plugins/ultimate-classified-listings/inc/admin/metabox-info.php
  • 50× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-classified-listings/classes/class-ucl-init.php:12
    • > PHP Notice
      Undefined variable: value in wp-content/plugins/ultimate-classified-listings/templates/content-single/checkboxes.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-classified-listings/inc/admin/add-category-image.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-classified-listings/templates/content-single/section.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-classified-listings/inc/admin/fields-builder.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ultimate-classified-listings/classes/class-shortcodes.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-classified-listings/classes/class-register-cpt.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/ultimate-classified-listings/shortcodes/dashboard/profile.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-classified-listings/templates/loop/1/grid.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-classified-listings/classes/class-email.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_settings
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_settings - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_sections
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_sections - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_builder
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_fields_builder - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_sellers
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=uclwp_listing_category&post_type=uclwp_listing&page=uclwp_listing_sellers - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: real-estate, classifieds, directory, classified-ads, search...

ultimate-classified-listings/ultimate-classified-listings.php Passed 13 tests

The main PHP file in "Ultimate Classified Listings" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
A simple yet complete classifieds and listings system for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin32,080 lines of code in 105 files:
LanguageFilesBlank linesComment linesLines of code
CSS232156613,983
JavaScript303,1783,70010,811
PHP517361997,267
SVG10019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity58.00
▷ Minimum class complexity14.00
▷ Maximum class complexity122.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods94
▷ Static methods00.00%
▷ Public methods94100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/leaflet/images/marker-icon-2x.png2.41KB2.52KB0.00%
assets/images/pin-drag.png3.06KB1.82KB▼ 40.69%
assets/leaflet/images/marker-shadow.png0.60KB1.16KB0.00%
assets/libs/css/images/imgs-grid-icons.png1.62KB0.89KB▼ 45.18%
assets/leaflet/images/layers-2x.png1.23KB1.67KB0.00%