83% xposure-listings

Code Review | Xposure Listings

WordPress plugin Xposure Listings scored83%from 54 tests.

About plugin

  • Plugin page: xposure-listings
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Nov 17, 2022
  • Number of updates: 13
  • Update frequency: every 1.7 days
  • Top authors: realtyserver (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /271 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.49ms] Passed 4 tests

A check of server-side resources used by Xposure Listings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0343.72 ▼8.35
Dashboard /wp-admin3.59 ▲0.0251.58 ▼5.71
Posts /wp-admin/edit.php3.70 ▲0.0253.91 ▼1.25
Add New Post /wp-admin/post-new.php6.17 ▲0.0291.52 ▼6.65
Media Library /wp-admin/upload.php3.51 ▲0.0245.76 ▲4.62

Server storage [IO: ▲1.57MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/xposure-listings/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/xposure-listings/assets/icon-256\303\227256.png"
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Xposure Listings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▼0.201.86 ▲0.1842.33 ▲0.88
Dashboard /wp-admin2,195 ▲185.56 ▼0.0785.48 ▼14.1139.70 ▼2.93
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0539.03 ▲2.8436.18 ▲2.06
Add New Post /wp-admin/post-new.php6,368 ▲4,82327.77 ▲4.63921.52 ▲297.3340.90 ▼21.77
Media Library /wp-admin/upload.php1,403 ▲124.19 ▼0.1396.81 ▼13.2346.37 ▼1.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xposure-listings/xposure-plugin.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: embed, real estate, listings

xposure-listings/xposure-plugin.php 92% from 13 tests

The main file in "Xposure Listings" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("xposure-listings.php" instead of "xposure-plugin.php")

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
No dangerous file extensions were detected544 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33113330
PHP1491698
CSS26184
PO File11120
XML10011
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 1.57MB with 0.99MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png1,585.63KB503.61KB▼ 68.24%
assets/icon-256×256.png19.13KB8.06KB▼ 57.88%