89% listings-for-appfolio

Code Review | Listings for Appfolio

WordPress plugin Listings for Appfolio scored89%from 54 tests.

About plugin

  • Plugin page: listings-for-appf...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2020
  • Latest release: Oct 18, 2023
  • Number of updates: 48
  • Update frequency: every 22.6 days
  • Top authors: deepakkite (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

200+ active /3,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.38MB] [CPU: ▼7.47ms] Passed 4 tests

This is a short check of server-side resources used by Listings for Appfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3943.69 ▲8.74
Dashboard /wp-admin3.73 ▲0.3853.55 ▼5.00
Posts /wp-admin/edit.php3.78 ▲0.4246.38 ▲2.28
Add New Post /wp-admin/post-new.php6.27 ▲0.3881.47 ▼29.89
Media Library /wp-admin/upload.php3.59 ▲0.3637.97 ▲2.72
Settings /wp-admin/admin.php?page=apfl3.5532.94
Customizer /wp-admin/admin.php?page=apfl-builder3.5633.63
Carousel /wp-admin/admin.php?page=apfl-carousel3.5532.28
Slider /wp-admin/admin.php?page=apfl-slider3.5531.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Listings for Appfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲7614.36 ▼0.351.83 ▼0.1044.70 ▲2.51
Dashboard /wp-admin2,248 ▲685.79 ▲0.1396.71 ▲11.4643.41 ▲0.38
Posts /wp-admin/edit.php2,137 ▲372.27 ▲0.3135.76 ▲2.8235.92 ▲0.92
Add New Post /wp-admin/post-new.php1,574 ▲3723.09 ▲4.94685.75 ▲71.2436.82 ▼37.71
Media Library /wp-admin/upload.php1,463 ▲694.27 ▲0.0890.31 ▼6.3844.56 ▲0.50
Settings /wp-admin/admin.php?page=apfl8861.9227.1630.65
Customizer /wp-admin/admin.php?page=apfl-builder2,9523.1993.8830.51
Carousel /wp-admin/admin.php?page=apfl-carousel8741.9427.1324.37
Slider /wp-admin/admin.php?page=apfl-slider8741.9127.1825.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

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

Analyzing the main PHP file in "Listings for Appfolio" version 1.1.6
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("listings-for-appfolio.php" instead of "appfolio-listings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,219 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45083312,786
CSS2915429
JavaScript1214

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/phone-call.png0.98KB1.28KB0.00%
images/check.png0.94KB0.56KB▼ 40.73%
images/bathtub.png0.73KB0.74KB0.00%
images/dollar-tag.png0.69KB0.73KB0.00%
images/map-marker.png1.27KB1.11KB▼ 12.50%