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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 16.74 ▼29.73 |
Dashboard /wp-admin | 2.36 ▼0.95 | 10.40 ▼41.14 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 11.43 ▼44.66 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.53 | 9.48 ▼91.81 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 12.50 ▼18.95 |
Featured Property Widget /wp-admin/options-general.php?page=featured_property_widget | 2.36 | 10.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.19 ▼1.18 | 1.90 ▼0.02 | 45.15 ▼1.97 |
Dashboard /wp-admin | 2,212 ▲27 | 4.84 ▼0.07 | 116.69 ▼0.88 | 44.42 ▲2.46 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.26 ▲0.26 | 39.84 ▲0.80 | 35.00 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.73 ▼5.58 | 656.65 ▲14.06 | 58.20 ▼3.91 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.21 ▼0.14 | 94.92 ▼7.75 | 43.52 ▼2.97 |
Featured Property Widget /wp-admin/options-general.php?page=featured_property_widget | 917 | 1.93 | 27.64 | 33.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 478 | 105 | 311 |
CSS | 2 | 5 | 8 | 19 |
JavaScript | 1 | 5 | 0 | 16 |
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 code | 0.16 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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