Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/propertyengine-real-estate/propertyengine-widgets-shortcodes.php+33
Non-static method PropertyEngineWidgetsShortCodePlugin::bootstrap() should not be called statically
Server metrics [RAM: ▼1.90MB] [CPU: ▼50.57ms] Passed 4 tests
Analyzing server-side resources used by PropertyEngine Widgets Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.97 ▼30.53 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.17 ▼42.78 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.66 ▼39.77 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.15 ▼89.18 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.64 ▼27.77 |
PropertyEngine Widgets Shortcodes /wp-admin/options-general.php?page=propertyengine-options | 2.11 | 5.89 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
propertyengine_tracking_id |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for PropertyEngine Widgets Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.60 ▲0.23 | 1.49 ▼0.12 | 42.70 ▲1.09 |
Dashboard /wp-admin | 2,210 ▲32 | 5.54 ▼0.10 | 88.34 ▼13.43 | 40.32 ▼3.05 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.04 ▲0.04 | 35.47 ▼7.44 | 39.07 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,543 ▲6 | 23.11 ▲5.07 | 695.50 ▲94.10 | 53.21 ▼21.00 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.28 ▲0.07 | 98.01 ▼15.11 | 41.64 ▼5.36 |
PropertyEngine Widgets Shortcodes /wp-admin/options-general.php?page=propertyengine-options | 970 | 2.08 | 27.35 | 34.56 |
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 cannot be uninstalled
- > Deprecated in wp-content/plugins/propertyengine-real-estate/propertyengine-widgets-shortcodes.php+33
Non-static method PropertyEngineWidgetsShortCodePlugin::bootstrap() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-content/plugins/propertyengine-real-estate/propertyengine-widgets-shortcodes.php+33
Non-static method PropertyEngineWidgetsShortCodePlugin::bootstrap() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-content/plugins/propertyengine-real-estate/lib/PropertyEngineWidgetsShortcodePlugin.class.php+19
Non-static method PropertyEngineWidgetsShortCodePlugin::getLocation() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PropertyEngineWidgetsShortcodeRteTinyMce::bootstrap() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PropertyEngineWidgetsShortcodesAdmin::setupAdminMenu() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PropertyEngineWidgetsShortcodesAdmin::printJavaScript() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PropertyEngineWidgetsShortcodesAdmin::printStylesheet() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PropertyEngineWidgetsShortcodesAdmin::printNotice() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PropertyEngineWidgetsShortcodesAdmin::displayOptions() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-content/plugins/propertyengine-real-estate/admin/form/options.php+16
Non-static method PropertyEngineWidgetsShortcodeConfiguration::getOptions() should not be called statically
- > GET request to /wp-admin/options-general.php?page=propertyengine-options
- > Deprecated in wp-content/plugins/propertyengine-real-estate/admin/view/options.php+46
Non-static method PropertyEngineWidgetsShortcodesAdmin::displayDocumentation() should not be called statically
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/propertyengine-real-estate/uninstall.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PropertyEngineWidgetsShortcodeBase' not found in wp-content/plugins/propertyengine-real-estate/lib/widgets/PropertyEngineWidgetsShortcodeDummy.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'PropertyEngineWidgetsShortcodeBase' not found in wp-content/plugins/propertyengine-real-estate/lib/widgets/PropertyEngineWidgetsShortcodeLiveList.class.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/propertyengine-real-estate/lib/widgets/PropertyEngineWidgetsShortcodeLiveList.tmpl.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/propertyengine-real-estate/propertyengine-widgets-shortcodes.php on line 19
- > PHP Notice
Undefined variable: mce_locale in wp-content/plugins/propertyengine-real-estate/web/javascript/tinymce3/wppropertyengine/langs/langs.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/propertyengine-real-estate/admin/view/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/propertyengine-real-estate/admin/view/documentation.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function js_escape() in wp-content/plugins/propertyengine-real-estate/web/javascript/tinymce3/wppropertyengine/langs/langs.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/propertyengine-real-estate/propertyengine-widgets-shortcodes.php:20
- > PHP Warning
Use of undefined constant PLUGINDIR - assumed 'PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/propertyengine-real-estate/propertyengine-widgets-shortcodes.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
propertyengine-real-estate/propertyengine-widgets-shortcodes.php 85% from 13 tests
"PropertyEngine Widgets Shortcodes" version 1.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("propertyengine-real-estate.php" instead of "propertyengine-widgets-shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,862 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 221 | 555 | 3,403 |
PHP | 19 | 121 | 415 | 983 |
SVG | 1 | 0 | 0 | 255 |
CSS | 6 | 19 | 27 | 119 |
HTML | 2 | 13 | 41 | 102 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 4.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
24 PNG files occupy 0.27MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
web/img/status-available-large.png | 79.61KB | 1.12KB | ▼ 98.60% |
web/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
web/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
web/img/jslider.png | 1.11KB | 0.71KB | ▼ 35.92% |
web/img/jslider.round.plastic2.png | 2.80KB | 1.81KB | ▼ 35.41% |