Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.01ms] Passed 4 tests
Server-side resources used by Powerful and Simple Property Responsive Listing plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.08 ▼2.54 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.05 ▼4.06 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.38 ▲4.72 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 83.09 ▼5.94 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.88 ▲4.50 |
Help /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_help | 3.44 | 35.58 |
Settings /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_settings | 3.42 | 42.41 |
New Property Grid /wp-admin/post-new.php?post_type=post_grid | 3.52 | 42.38 |
Property Grid /wp-admin/edit.php?post_type=post_grid | 3.45 | 37.73 |
City /wp-admin/edit-tags.php?taxonomy=City&post_type=property | 3.40 | 38.89 |
Layout Editor /wp-admin/edit.php?post_type=post_grid&page=post_grid_layout_editor | 3.48 | 34.88 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 125 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics 75% from 4 tests
Powerful and Simple Property Responsive Listing plugin: an overview of browser usage
A great user experience is important, so you should focus on the following
- Script duration: Total JavaScript execution time should be lower than 1,500.00ms (currently 1,790.08ms on /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_help)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,188 ▲442 | 16.48 ▲2.11 | 7.66 ▲5.89 | 35.75 ▼8.54 |
Dashboard /wp-admin | 2,472 ▲287 | 7.23 ▲1.34 | 129.19 ▲12.12 | 79.19 ▲35.38 |
Posts /wp-admin/edit.php | 2,393 ▲301 | 3.66 ▲1.62 | 50.75 ▲15.35 | 82.07 ▲49.81 |
Add New Post /wp-admin/post-new.php | 6,557 ▲5,035 | 26.20 ▲2.93 | 913.78 ▲231.66 | 53.62 ▼0.63 |
Media Library /wp-admin/upload.php | 1,529 ▲147 | 4.98 ▲0.76 | 83.69 ▼20.09 | 97.51 ▲52.52 |
Help /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_help | 6,145 | 71.43 | 1,790.08 | 91.00 |
Settings /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_settings | 1,136 | 3.79 | 55.19 | 96.21 |
New Property Grid /wp-admin/post-new.php?post_type=post_grid | 3,595 | 5.25 | 97.63 | 114.33 |
Property Category /wp-admin/edit-tags.php?taxonomy=Property Category&post_type=property | 1,563 | 3.45 | 45.00 | 63.98 |
Property Grid /wp-admin/edit.php?post_type=post_grid | 1,365 | 3.64 | 46.87 | 88.96 |
City /wp-admin/edit-tags.php?taxonomy=City&post_type=property | 1,563 | 3.57 | 45.32 | 92.46 |
Bed Room /wp-admin/edit-tags.php?taxonomy=Bed Room&post_type=property | 1,569 | 3.44 | 45.08 | 87.32 |
Property Type /wp-admin/edit-tags.php?taxonomy=Property Type&post_type=property | 1,563 | 3.48 | 42.34 | 64.68 |
Layout Editor /wp-admin/edit.php?post_type=post_grid&page=post_grid_layout_editor | 1,254 | 3.75 | 45.03 | 67.03 |
Bath Room /wp-admin/edit-tags.php?taxonomy=Bath Room&post_type=property | 1,566 | 3.53 | 42.46 | 81.04 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_settings
- > Warning in wp-content/plugins/wp-smart-property/post-grid/includes/menu/settings.php+102
Invalid argument supplied for foreach()
- > GET request to /wp-admin/post-new.php?post_type=post_grid
- > Notice in wp-content/plugins/wp-smart-property/post-grid/includes/meta.php+1688
Undefined variable: slider_navs_positon
- > GET request to /wp-admin/post-new.php?post_type=post_grid
- > Notice in wp-content/plugins/wp-smart-property/post-grid/includes/meta.php+1688
Undefined variable: slider_navs
- > GET request to /wp-admin/post-new.php?post_type=post_grid
- > Notice in wp-content/plugins/wp-smart-property/post-grid/includes/meta.php+1717
Undefined variable: slider_dots_style
- > GET request to /wp-admin/post-new.php?post_type=post_grid
- > Notice in wp-content/plugins/wp-smart-property/post-grid/includes/meta.php+1717
Undefined variable: slider_dots
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-smart-property/post-grid/includes/dummy-grid-items.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(WP_PLUGIN_DIR/wp-smart-property/core/install.php): failed to open stream: No such file or directory in wp-content/plugins/wp-smart-property/init.php on line 23
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-smart-property/init.php on line 20
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-smart-property/init.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/wp-smart-property/core/install.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-smart-property/init.php on line 23
- > PHP Warning
Use of undefined constant post_grid_plugin_url - assumed 'post_grid_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-smart-property/post-grid/includes/dummy-grid-items.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-property/core/install.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-property/core/metabox.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPSMPR_Register_Post' not found in wp-content/plugins/wp-smart-property/core/extras.php:7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=post_grid&page=post_grid_menu_help
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
- Requires at least: Invalid version format
wp-smart-property/init.php 85% from 13 tests
The main PHP script in "Powerful and Simple Property Responsive Listing plugin" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-smart-property.php" instead of "init.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 205 characters long)
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
Success! There were no dangerous files found in this plugin29,300 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 2,956 | 2,740 | 16,186 |
CSS | 12 | 807 | 147 | 5,075 |
PHP | 29 | 3,253 | 530 | 3,910 |
SVG | 2 | 0 | 0 | 3,311 |
PO File | 2 | 357 | 363 | 818 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 6 | 17.65% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 PNG files occupy 0.77MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
post-grid/assets/frontend/css/images/link.png | 3.54KB | 0.69KB | ▼ 80.62% |
post-grid/assets/admin/bg/small_steps.png | 0.16KB | 0.16KB | 0.00% |
post-grid/assets/frontend/css/icons/twitter.png | 6.02KB | 2.10KB | ▼ 65.18% |
lib/jquery/ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
post-grid/assets/admin/bg/eight_horns.png | 2.43KB | 2.79KB | 0.00% |