Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼36.29ms] Passed 4 tests
An overview of server-side resources used by GT Foursquare
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.48 ▲1.58 |
Dashboard /wp-admin | 3.05 ▼0.26 | 24.26 ▼30.73 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 22.88 ▼27.81 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 24.63 ▼75.69 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 26.10 ▼10.93 |
GT Foursquare /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php | 3.05 | 25.08 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-posts |
wp_gt4sq_height |
wp_gt4sq_widget_height |
can_compress_scripts |
wp_gt4sq_feed_count |
wp_gt4sq_map_enable |
wp_gt4sq_feed_url |
wp_gt4sq_widget_list_enable |
wp_gt4sq_width |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GT Foursquare
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 14.99 ▲0.61 | 1.98 ▲0.25 | 44.64 ▲0.88 |
Dashboard /wp-admin | 2,377 ▲174 | 6.52 ▲0.74 | 131.15 ▲27.49 | 39.30 ▼8.99 |
Posts /wp-admin/edit.php | 2,279 ▲176 | 3.48 ▲1.32 | 45.81 ▲0.00 | 30.99 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.42 ▲5.87 | 650.07 ▼20.93 | 37.59 ▼16.32 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.27 ▲0.06 | 81.90 ▼22.38 | 42.12 ▼2.99 |
GT Foursquare /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php | 1,390 | 3.46 | 45.29 | 56.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > 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.
- This plugin does not fully uninstall, leaving 18 options in the database
- wp_gt4sq_widget_title
- wp_gt4sq_width
- wp_gt4sq_widget_list_enable
- widget_recent-comments
- wp_gt4sq_widget_map_enable
- wp_gt4sq_widget_width
- wp_gt4sq_feed_count
- wp_gt4sq_feed_url
- wp_gt4sq_map_enable
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > 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=gt-foursquare/gt4sq.php
- > Notice in wp-content/plugins/gt-foursquare/includes/setting-page/gt4sq-left-main.php+15
Undefined variable: gt4sq_feed_tip
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gt-foursquare/includes/setting-page/gt4sq-left-map-post-page.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/gt-foursquare/gt4sq.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gt-foursquare/includes/setting-page/gt4sq-left-main.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gt-foursquare/includes/setting-page/gt4sq-left-map-widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gt-foursquare/includes/setting-page/gt4sq-left-main.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gt-foursquare/includes/setting-page/gt4sq-left-main.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gt-foursquare/js/gt4sq.js?ver=6.3.1:17:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > Network (severe)
wp-content/plugins/gt-foursquare/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > Network (severe)
wp-content/plugins/gt-foursquare/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > Network (severe)
wp-content/plugins/gt-foursquare/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > Network (severe)
wp-content/plugins/gt-foursquare/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gt-foursquare/gt4sq.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: foursquare, 4square, 4sq, social media, check-in...
gt-foursquare/gt4sq.php 92% from 13 tests
The main PHP script in "GT Foursquare" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gt-foursquare.php" instead of "gt4sq.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
There were no executable files found in this plugin2,522 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 360 | 48 | 1,512 |
PHP | 6 | 124 | 84 | 513 |
JavaScript | 2 | 92 | 266 | 497 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tip.png | 0.42KB | 0.27KB | ▼ 34.98% |