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
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wpcheckin/wpcheckin.php+333
Methods with the same name as their class will not be constructors in a future version of PHP; WPCheckin_Widget has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.03ms] Passed 4 tests
Server-side resources used by WPCheckin Widget and Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.32 | 4.55 ▼33.88 |
Dashboard /wp-admin | 2.17 ▼1.14 | 7.27 ▼45.44 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 6.24 ▼40.19 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.83 ▼96.61 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 7.76 ▼28.01 |
Checkins /wp-admin/edit.php?post_type=wpcheckin | 2.17 | 6.61 |
Checkin /wp-admin/options-general.php?page=wpcheckin | 2.17 | 6.37 |
Add New /wp-admin/post-new.php?post_type=wpcheckin | 2.17 | 6.01 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_wpcheckin_widget |
wpcheckin |
Browser metrics Passed 4 tests
An overview of browser requirements for WPCheckin Widget and Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲203 | 13.56 ▼1.05 | 5.16 ▲3.58 | 36.29 ▼5.01 |
Dashboard /wp-admin | 2,238 ▲53 | 5.84 ▲0.95 | 94.07 ▼9.37 | 39.03 ▼2.03 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▲0.02 | 33.87 ▼4.17 | 33.87 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 18.05 ▼5.24 | 676.97 ▲70.02 | 58.53 ▲9.68 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.20 ▼0.00 | 97.32 ▲1.00 | 45.54 ▲3.84 |
Checkins /wp-admin/edit.php?post_type=wpcheckin | 1,088 | 1.93 | 34.90 | 29.80 |
Checkin /wp-admin/options-general.php?page=wpcheckin | 900 | 2.20 | 27.74 | 24.34 |
Add New /wp-admin/post-new.php?post_type=wpcheckin | 2,212 | 7.75 | 164.14 | 72.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wpcheckin/wpcheckin.php+333
Methods with the same name as their class will not be constructors in a future version of PHP; WPCheckin_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_wpcheckin_widget
- can_compress_scripts
- widget_recent-comments
- wpcheckin
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpcheckin
- > Deprecated in wp-content/plugins/wpcheckin/wpcheckin.php+333
Methods with the same name as their class will not be constructors in a future version of PHP; WPCheckin_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wpcheckin
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpcheckin/single-wpcheckin.php
- > /wp-content/plugins/wpcheckin/inc/options-page-wrapper.php
- > /wp-content/plugins/wpcheckin/inc/places-list.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > 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/wpcheckin/wpcheckin.php on line 14
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wpcheckin/inc/places-list.php on line 2
- > PHP Notice
Undefined variable: after_title in wp-content/plugins/wpcheckin/inc/front-end.php on line 4
- > PHP Notice
Undefined variable: wpcheckin_key in wp-content/plugins/wpcheckin/inc/options-page-wrapper.php on line 48
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wpcheckin/inc/front-end.php:7
- > PHP Notice
Undefined variable: wpcheckin_places in wp-content/plugins/wpcheckin/inc/places-list.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcheckin/wpcheckin.php:28
- > PHP Notice
Undefined variable: title in wp-content/plugins/wpcheckin/inc/front-end.php on line 4
- > PHP Notice
Trying to get property 'status' of non-object in wp-content/plugins/wpcheckin/inc/places-list.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpcheckin/inc/widget-fields.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: location, widget, google places, api, shortcode...
wpcheckin/wpcheckin.php Passed 13 tests
The main file in "WPCheckin Widget and Shortcode" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Add geo checkin feature to WordPress.
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
Good job! No executable or dangerous file extensions detected600 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 142 | 69 | 421 |
JavaScript | 2 | 18 | 8 | 69 |
CSS | 1 | 9 | 0 | 60 |
Markdown | 1 | 29 | 0 | 50 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin