83% real-estate-slideshow

Code Review | Real Estate Slideshow

WordPress plugin Real Estate Slideshow scored 83% from 54 tests.

About plugin

  • Plugin page: real-estate-slide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.8.1-4.2.2
  • WordPress version: 5.8.1
  • First release: May 28, 2015
  • Latest release: May 29, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: genteycasas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,737 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
Installer ran successfully

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

An overview of server-side resources used by Real Estate Slideshow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.46 ▲18.16
Dashboard /wp-admin3.08 ▲0.0245.85 ▲1.80
Posts /wp-admin/edit.php3.13 ▲0.0237.55 ▼5.02
Add New Post /wp-admin/post-new.php5.44 ▲0.0194.11 ▼571.81
Media Library /wp-admin/upload.php3.02 ▲0.0134.69 ▼11.49

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_gyc_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Real Estate Slideshow
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.18 ▲0.729.30 ▼1.8849.96 ▲1.57
Dashboard /wp-admin2,986 ▲555.98 ▲0.07157.13 ▼6.21107.83 ▼4.03
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0267.16 ▼8.1490.97 ▲4.09
Add New Post /wp-admin/post-new.php1,683 ▲6818.52 ▼2.93389.99 ▲94.16108.42 ▲0.50
Media Library /wp-admin/upload.php1,748 ▼595.00 ▼0.01153.81 ▼19.50113.08 ▼7.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_gyc_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/real-estate-slideshow/gyc_real_estate_slideshow.php:91

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Slideshow with logotype), #2 (Slideshow without logotype)
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can look at the official readme.txt

real-estate-slideshow/gyc_real_estate_slideshow.php 92% from 13 tests

The entry point to "Real Estate Slideshow" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("real-estate-slideshow.php" instead of "gyc_real_estate_slideshow.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
There were no executable files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281267

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png72.12KB25.95KB▼ 64.01%
screenshot-2.png68.10KB24.70KB▼ 63.74%