57% clasify-classified-listing

Code Review | Clasify Classified Listing

WordPress plugin Clasify Classified Listing scored57%from 54 tests.

About plugin

  • Plugin page: clasify-classifie...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2022
  • Latest release: Sep 13, 2023
  • Number of updates: 9
  • Update frequency: every 51.1 days
  • Top authors: smartdatasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,335 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.88MB] [CPU: ▲38.76ms] 75% from 4 tests

An overview of server-side resources used by Clasify Classified Listing
It is recommended to improve the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.88MB on /wp-admin/edit.php?post_type=cl_cpt&page=listing_settings_func)
PageMemory (MB)CPU Time (ms)
Home /8.50 ▲5.0472.78 ▲33.71
Dashboard /wp-admin9.47 ▲6.1392.95 ▲24.08
Posts /wp-admin/edit.php9.60 ▲6.2489.33 ▲40.20
Add New Post /wp-admin/post-new.php12.07 ▲6.19162.21 ▲58.47
Media Library /wp-admin/upload.php9.38 ▲6.1595.66 ▲57.06
Status /wp-admin/edit-tags.php?taxonomy=listing_status&post_type=cl_cpt9.4186.66
Add New Listings /wp-admin/post-new.php?post_type=cl_cpt9.56122.46
Locations /wp-admin/edit-tags.php?taxonomy=listing_location&post_type=cl_cpt9.4175.95
Categories /wp-admin/edit-tags.php?taxonomy=listings_category&post_type=cl_cpt9.4173.81
Features /wp-admin/edit-tags.php?taxonomy=listing_features&post_type=cl_cpt9.4171.99
Payments /wp-admin/edit.php?post_type=cl_cpt&page=cl-payment-history9.8071.10
Discounts /wp-admin/edit.php?post_type=cl_cpt&page=cl_discounts9.5172.94
All Clasify Classified /wp-admin/edit.php?post_type=cl_cpt9.4673.59
Conditions /wp-admin/edit-tags.php?taxonomy=listing_conditions&post_type=cl_cpt9.4174.72
Settings /wp-admin/edit.php?post_type=cl_cpt&page=listing_settings_func9.3870.99

Server storage [IO: ▲5.50MB] [DB: ▲0.02MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 752 new files
Database: 3 new tables, 12 new options
New tables
wp_enquiry_message
wp_cl_customermeta
wp_cl_customers
New WordPress options
theysaidso_admin_options
wp_cl_customermeta_db_version
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_listing-search
widget_listing-enquiry
cl_use_php_sessions
wp_cl_customers_db_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clasify Classified Listing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,299 ▲51316.68 ▲2.3330.41 ▲28.1846.30 ▲4.35
Dashboard /wp-admin2,478 ▲2986.56 ▲0.89113.49 ▲13.2539.91 ▼5.05
Posts /wp-admin/edit.php2,409 ▲3093.72 ▲1.6954.40 ▲13.9333.93 ▼7.92
Add New Post /wp-admin/post-new.php1,828 ▲30021.84 ▼1.22634.44 ▼40.5930.05 ▼45.18
Media Library /wp-admin/upload.php1,546 ▲1464.52 ▲0.3981.40 ▼27.5046.05 ▼1.12
Status /wp-admin/edit-tags.php?taxonomy=listing_status&post_type=cl_cpt1,5593.6143.2529.49
Add New Listings /wp-admin/post-new.php?post_type=cl_cpt4,2988.90228.80101.52
Locations /wp-admin/edit-tags.php?taxonomy=listing_location&post_type=cl_cpt1,5873.5844.4530.92
Categories /wp-admin/edit-tags.php?taxonomy=listings_category&post_type=cl_cpt1,5873.6947.7230.08
Features /wp-admin/edit-tags.php?taxonomy=listing_features&post_type=cl_cpt1,5583.5943.7928.92
Payments /wp-admin/edit.php?post_type=cl_cpt&page=cl-payment-history1,4353.4344.6326.75
Discounts /wp-admin/edit.php?post_type=cl_cpt&page=cl_discounts1,3723.5140.7828.35
All Clasify Classified /wp-admin/edit.php?post_type=cl_cpt1,4613.7248.1327.69
Conditions /wp-admin/edit-tags.php?taxonomy=listing_conditions&post_type=cl_cpt1,5543.5342.8532.27
Settings /wp-admin/edit.php?post_type=cl_cpt&page=listing_settings_func2,1623.3944.7626.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_cl_customermeta
    • wp_enquiry_message
    • wp_cl_customers
  • Zombie WordPress options detected upon uninstall: 12 options
    • cl_use_php_sessions
    • cl_admin_settings
    • wp_cl_customermeta_db_version
    • can_compress_scripts
    • widget_listing-enquiry
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_listing-search
    • wp_cl_customers_db_version
    • ...

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 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/stripe/stripe-php/update_certs.php
    • > /wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/stripe/stripe-php/build.php
  • 548× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/clasify-classified-listing/templates/frontend/listings/dashboard/edit/group.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/clasify-classified-listing/templates/admin/supports.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/stripe/stripe-php/lib/Service/CustomerService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/stripe/stripe-php/lib/Capability.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'CL_Stripe_Utils_Registry' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/includes/admin/class-notices-registry.php:14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/clasify-classified-listing/src/Admin/MetaBoxes/Forms/group_inc/textarea.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

clasify-classified-listing/index.php 77% from 13 tests

The main file in "Clasify Classified Listing" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7.0" instead of "5.2")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6.0" instead of "7.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clasify-classified-listing.php" instead of "index.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please fix the following items
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/clasify-classified-listing/src/Front/Purchase/Gateways/Stripe/stripe/vendor/stripe/stripe-php/data/ca-certificates.crt
67,548 lines of code in 719 files:
LanguageFilesBlank linesComment linesLines of code
PHP61810,91123,90849,146
JavaScript581,1151,2309,058
CSS205742506,736
Markdown473801,341
Sass4972623
JSON500406
SVG7160161
XML22054
make18023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.99
▷ Minimum class complexity1.00
▷ Maximum class complexity282.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces68
Interfaces10
Traits8
Classes421
▷ Abstract classes153.56%
▷ Concrete classes40696.44%
▷ Final classes10.25%
Methods2,170
▷ Static methods2089.59%
▷ Public methods1,86385.85%
▷ Protected methods1527.00%
▷ Private methods1557.14%
Functions426
▷ Named functions40194.13%
▷ Anonymous functions255.87%
Constants800
▷ Global constants293.62%
▷ Class constants77196.38%
▷ Public constants771100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/img/marker.png14.64KB7.78KB▼ 46.90%
assets/css/plugins/images/marker-shadow.png0.60KB1.16KB0.00%
assets/css/plugins/images/marker-icon.png1.14KB1.07KB▼ 6.24%
assets/img/placeholder-gallery.png70.43KB28.63KB▼ 59.35%
assets/img/placeholder.png5.28KB4.04KB▼ 23.47%