68% wp-classifieds-listings

Code Review | WP Classifieds Listings

WordPress plugin WP Classifieds Listings scored68%from 54 tests.

About plugin

  • Plugin page: wp-classifieds-li...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 9, 2018
  • Latest release: Mar 9, 2018
  • Number of updates: 2
  • Update frequency: every 108.0 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,171 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.83ms] Passed 4 tests

This is a short check of server-side resources used by WP Classifieds Listings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.62 ▲0.35
Dashboard /wp-admin3.45 ▲0.1049.07 ▼16.79
Posts /wp-admin/edit.php3.49 ▲0.1349.17 ▲1.21
Add New Post /wp-admin/post-new.php6.03 ▲0.1491.95 ▼12.07
Media Library /wp-admin/upload.php3.36 ▲0.1340.02 ▲7.45
Payment History /wp-admin/admin.php?page=payment_summary3.3836.82
Manage Regions /wp-admin/admin.php?page=manage_regions3.4735.43
Settings /wp-admin/admin.php?page=xyz_cls_settings3.6039.25
Email Templates /wp-admin/admin.php?page=xyz_cls_email_template3.4535.49
Manage Cities /wp-admin/admin.php?page=manage_cities3.4337.05
About /wp-admin/admin.php?page=xyz-cls-about3.3534.43

Server storage [IO: ▲3.93MB] [DB: ▲0.15MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 162 new files
Database: 7 new tables, 44 new options
New tables
wp_xyz_cls_email_templates
wp_xyz_cls_payment_summary
wp_xyz_cls_countries
wp_xyz_cls_paypal_ipn
wp_xyz_cls_listing_details
wp_xyz_cls_states
wp_xyz_cls_cities
New WordPress options
xyz_wp_cls_city
xyz_cls_item_type
xyz_wp_cls_forgotpassword
xyz_cls_disable_dflt_login
xyz_cls_needs_pages
widget_recent-comments
theysaidso_admin_options
xyz_cls_default_item_status
widget_recent-posts
xyz_wp_cls_register
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP Classifieds Listings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,303 ▲55714.86 ▲0.4811.27 ▲9.3047.39 ▲2.48
Dashboard /wp-admin2,313 ▲1315.04 ▼0.8197.78 ▼7.9564.69 ▲22.89
Posts /wp-admin/edit.php2,192 ▲1032.10 ▲0.0839.40 ▲2.4036.45 ▼2.47
Add New Post /wp-admin/post-new.php1,760 ▲24622.36 ▲4.84738.86 ▲42.4239.01 ▼22.34
Media Library /wp-admin/upload.php1,492 ▲1044.22 ▲0.0193.42 ▼9.1478.99 ▲35.23
Payment History /wp-admin/admin.php?page=payment_summary1,2111.8028.3453.74
Manage Regions /wp-admin/admin.php?page=manage_regions2,6162.0037.5739.41
Settings /wp-admin/admin.php?page=xyz_cls_settings2,9661.8830.8556.81
Email Templates /wp-admin/admin.php?page=xyz_cls_email_template3,82812.03335.24146.91
Manage Cities /wp-admin/admin.php?page=manage_cities2,6001.9032.7941.95
About /wp-admin/admin.php?page=xyz-cls-about1,1301.8125.6037.06

Uninstaller [IO: ▲0.01MB] [DB: ▲0.14MB] 50% 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
  • The plugin did not uninstall successfully, leaving 7 tables in the database
    • wp_xyz_cls_listing_details
    • wp_xyz_cls_cities
    • wp_xyz_cls_countries
    • wp_xyz_cls_email_templates
    • wp_xyz_cls_states
    • wp_xyz_cls_paypal_ipn
    • wp_xyz_cls_payment_summary
  • This plugin does not fully uninstall, leaving 11 options in the database
    • xyz_cls_custom_fields
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • xyz_cls_category_children
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • xyz_cls_category_view
    • xyz_credit_link
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-classifieds-listings/templates/category-item-listing.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-classifieds-listings/admin/admin-notices.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-classifieds-listings/wp-classifieds-listings.php Passed 13 tests

The main PHP file in "WP Classifieds Listings" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
This plugin allows you to convert your worpdress installation into a fully fledged classifieds site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin29,625 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
CSS78335812,538
PHP3971321812,309
SVG2002,776
JavaScript55952321,683
PO File1150176319

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity7.40
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions98
▷ Named functions98100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
68 PNG files occupy 0.35MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/right-row-prem.png2.69KB1.44KB▼ 46.46%
images/timg.png62.46KB40.05KB▼ 35.88%
images/premium-left.png2.93KB2.05KB▼ 30.05%
images/grn-bg.png0.20KB0.27KB0.00%
images/suggest.png3.30KB0.85KB▼ 74.28%