89% property-carousel-for-propertyhive

Code Review | Property Carousel for Property Hive

WordPress plugin Property Carousel for Property Hive scored89%from 54 tests.

About plugin

  • Plugin page: property-carousel...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Oct 29, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: markheydon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /774 total downloads

Benchmarks

Plugin footprint 83% 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.08MB] [CPU: ▼2.41ms] Passed 4 tests

Server-side resources used by Property Carousel for Property Hive
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0835.32 ▼1.42
Dashboard /wp-admin3.38 ▲0.0843.85 ▼5.89
Posts /wp-admin/edit.php3.49 ▲0.1447.79 ▼0.81
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.13 ▲2.91
Media Library /wp-admin/upload.php3.30 ▲0.0735.49 ▼1.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Property Carousel for Property Hive
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.74 ▼0.831.66 ▲0.0039.09 ▼0.51
Dashboard /wp-admin2,212 ▲244.82 ▼0.08109.65 ▲5.0641.57 ▲0.01
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0139.53 ▲0.6034.91 ▲1.68
Add New Post /wp-admin/post-new.php1,525 ▲1123.14 ▲5.69669.65 ▼12.3863.06 ▲3.70
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.0297.26 ▼8.4441.31 ▼2.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
5 plugin tags: estate agent, property, propertyhive, carousel, property carousel

property-carousel-for-propertyhive/property-carousel-propertyhive.php 85% from 13 tests

The entry point to "Property Carousel for Property Hive" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("property-carousel-for-propertyhive.php" instead of "property-carousel-propertyhive.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
There were no executable files found in this plugin1,451 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2132119927
PHP12129777434
CSS2153171
SVG10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.75
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods46
▷ Static methods1532.61%
▷ Public methods2656.52%
▷ Protected methods24.35%
▷ Private methods1839.13%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
No PNG files were detected