Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.68ms] Passed 4 tests
Analyzing server-side resources used by Google Locker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 40.91 ▼5.57 |
Dashboard /wp-admin | 3.49 ▲0.18 | 49.54 ▼1.02 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.68 ▲2.08 |
Add New Post /wp-admin/post-new.php | 5.64 ▼0.25 | 81.59 ▼9.21 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.15 ▼6.92 |
Google Locker /wp-admin/options-general.php?page=g_locker | 3.38 | 34.24 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Google Locker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,027 ▲266 | 13.73 ▼0.64 | 8.74 ▲6.44 | 37.83 ▼9.37 |
Dashboard /wp-admin | 2,308 ▲128 | 5.15 ▼0.48 | 95.85 ▼2.40 | 42.36 ▼2.16 |
Posts /wp-admin/edit.php | 2,219 ▲122 | 2.27 ▲0.26 | 41.33 ▲5.14 | 35.99 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.52 ▲0.21 | 684.20 ▲15.80 | 38.17 ▼14.60 |
Media Library /wp-admin/upload.php | 1,520 ▲120 | 4.57 ▲0.34 | 103.31 ▼0.08 | 42.81 ▼1.07 |
Google Locker /wp-admin/options-general.php?page=g_locker | 1,528 | 2.21 | 29.91 | 38.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=g_locker
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=g_locker
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=g_locker
- > Notice in wp-content/plugins/google-locker/admin/pages.php+470
Undefined variable: msg
- > GET request to /wp-admin/options-general.php?page=g_locker
- > Notice in wp-content/plugins/google-locker/admin/shortcode.php+25
Undefined variable: script_footer
SRP 50% 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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/google-locker/admin/pages.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-locker/admin/init.php:140
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-locker/admin/shortcode.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/google-locker/google-locker.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
google-locker/google-locker.php Passed 13 tests
The main PHP script in "Google Locker" version 1.0 is automatically included on every request by WordPress
87 characters long description:
Google Locker is a plugin help you to get more Share/Subscriber, traffic and customers.
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
There were no executable files found in this plugin1,225 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 156 | 129 | 879 |
CSS | 1 | 34 | 12 | 265 |
JavaScript | 3 | 18 | 2 | 81 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/g-locker-shortcode-icon.png | 0.93KB | 0.82KB | ▼ 12.37% |
assets/img/icon_google.png | 0.67KB | 0.91KB | 0.00% |
assets/img/icon_youtube.png | 0.76KB | 1.02KB | 0.00% |