68% featured-property-widget

Code Review | Featured Property

WordPress plugin Featured Property scored 68% from 54 tests.

About plugin

  • Plugin page: featured-property...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Apr 23, 2015
  • Number of updates: 13
  • Update frequency: every 67.3 days
  • Top authors: cfusionmm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,504 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.65MB] [CPU: ▼51.84ms] Passed 4 tests

Analyzing server-side resources used by Featured Property
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.34 ▼1.1216.74 ▼29.73
Dashboard /wp-admin2.36 ▼0.9510.40 ▼41.14
Posts /wp-admin/edit.php2.36 ▼1.0011.43 ▼44.66
Add New Post /wp-admin/post-new.php2.36 ▼3.539.48 ▼91.81
Media Library /wp-admin/upload.php2.36 ▼0.8712.50 ▼18.95
Featured Property Widget /wp-admin/options-general.php?page=featured_property_widget2.3610.77

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_featuredproperty
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Featured Property
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.19 ▼1.181.90 ▼0.0245.15 ▼1.97
Dashboard /wp-admin2,212 ▲274.84 ▼0.07116.69 ▼0.8844.42 ▲2.46
Posts /wp-admin/edit.php2,110 ▲242.26 ▲0.2639.84 ▲0.8035.00 ▲1.63
Add New Post /wp-admin/post-new.php1,519 ▼1417.73 ▼5.58656.65 ▲14.0658.20 ▼3.91
Media Library /wp-admin/upload.php1,402 ▲114.21 ▼0.1494.92 ▼7.7543.52 ▼2.97
Featured Property Widget /wp-admin/options-general.php?page=featured_property_widget9171.9327.6433.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in featuredproperty is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_featuredproperty
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=featured_property_widget
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in featuredproperty is deprecated since version 4.3.0! Use __construct() instead.

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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-property-widget/inc/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/featured-property-widget/index.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/featured-property-widget/featuredproperty.class.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === featured-property-widget === )
The official readme.txt is a good inspiration

featured-property-widget/index.php 92% from 13 tests

The main PHP script in "Featured Property" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-property-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin346 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3478105311
CSS25819
JavaScript15016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin