Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/kd-google-plus-badge/kd_google_plus_badge.php+26
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.43ms] Passed 4 tests
A check of server-side resources used by KdTips Google Plus badge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.60 ▼35.54 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.25 ▼42.12 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.97 ▼42.61 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.47 ▼93.43 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.62 ▼27.75 |
google-badge /wp-admin/options-general.php?page=kd-google-plus-badge | 2.05 | 5.73 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/kd-google-plus-badge/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/kd-google-plus-badge/banner-772\303\227250.png"
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_kd_google_plus_badge |
Browser metrics Passed 4 tests
A check of browser resources used by KdTips Google Plus badge
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.66 ▼0.72 | 1.89 ▲0.17 | 42.35 ▼3.66 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.03 | 98.53 ▼22.82 | 38.63 ▼2.03 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.00 | 39.97 ▲0.59 | 35.32 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.22 ▼4.80 | 616.46 ▲26.11 | 52.26 ▲2.48 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▲0.05 | 94.43 ▼7.14 | 43.67 ▼1.42 |
google-badge /wp-admin/options-general.php?page=kd-google-plus-badge | 930 | 2.03 | 25.07 | 27.07 |
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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/kd-google-plus-badge/kd_google_plus_badge.php+26
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_kd_google_plus_badge
Smoke tests 50% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=kd-google-plus-badge
- > Deprecated in wp-content/plugins/kd-google-plus-badge/kd_google_plus_badge.php+26
Function create_function() is deprecated
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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kd-google-plus-badge/kd_google_plus_badge.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: social networking, badge, google, google-plus, google-plus-pages...
kd-google-plus-badge/kd_google_plus_badge.php 92% from 13 tests
The main file in "KdTips Google Plus badge" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kd-google-plus-badge.php" instead of "kd_google_plus_badge.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected251 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 63 | 251 |
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.35 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot1.PNG | 13.24KB | 7.32KB | ▼ 44.71% |
banner-772×250.png | 76.78KB | 22.05KB | ▼ 71.28% |
screenshot.PNG | 30.00KB | 10.04KB | ▼ 66.52% |
screenshot2.PNG | 16.87KB | 8.48KB | ▼ 49.70% |