89% listings-for-buildium

Code Review | Listings for Buildium

WordPress plugin Listings for Buildium scored89%from 54 tests.

About plugin

  • Plugin page: listings-for-buil...
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 4, 2021
  • Latest release: Mar 31, 2023
  • Number of updates: 6
  • Update frequency: every 95.7 days
  • Top authors: deepakkite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.31MB] [CPU: ▼4.98ms] Passed 4 tests

An overview of server-side resources used by Listings for Buildium
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2959.55 ▲17.02
Dashboard /wp-admin3.66 ▲0.3550.23 ▼3.84
Posts /wp-admin/edit.php3.71 ▲0.3547.81 ▼1.46
Add New Post /wp-admin/post-new.php6.18 ▲0.2982.56 ▼17.95
Media Library /wp-admin/upload.php3.52 ▲0.2937.13 ▲3.35
Listings for Buildium /wp-admin/options-general.php?page=bldm3.4833.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Listings for Buildium: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.68 ▼0.9913.39 ▲11.4361.03 ▲16.20
Dashboard /wp-admin2,204 ▲135.83 ▼0.07102.41 ▼14.6040.17 ▼6.25
Posts /wp-admin/edit.php2,093 ▲72.03 ▼0.0234.10 ▼2.2136.94 ▼7.11
Add New Post /wp-admin/post-new.php1,537 ▲923.22 ▲4.87598.97 ▼15.6452.13 ▼6.09
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0797.80 ▼4.1142.53 ▲1.17
Listings for Buildium /wp-admin/options-general.php?page=bldm7912.0524.5430.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
8 plugin tags: buildium integration, property listings, buildium property listings, buildium listings, listings for buildium...

listings-for-buildium/buildium-listings.php 77% from 13 tests

The primary PHP file in "Listings for Buildium" version 0.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("listings-for-buildium.php" instead of "buildium-listings.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
Success! There were no dangerous files found in this plugin2,627 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP44313212,105
CSS2413464
JavaScript111558

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity193.50
▷ Minimum class complexity138.00
▷ Maximum class complexity249.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods7583.33%
▷ Protected methods1516.67%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sleep.png0.64KB0.65KB0.00%
images/bathtub.png0.73KB0.74KB0.00%
images/check.png0.94KB0.56KB▼ 40.73%
images/map-marker.png1.27KB1.11KB▼ 12.50%
images/dollar-tag.png0.69KB0.73KB0.00%