Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/kudos/php/functions.php+37
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.69ms] Passed 4 tests
Server-side resources used by Kudos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 39.95 ▼0.90 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.66 ▼2.93 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.94 ▼3.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.33 ▼19.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.13 ▲0.40 |
Kudos /wp-admin/options-general.php?page=kudos | 3.10 | 26.39 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
kudos |
Browser metrics Passed 4 tests
Kudos: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲182 | 13.64 ▼0.74 | 10.27 ▲8.58 | 37.31 ▼6.32 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▲0.95 | 98.67 ▼6.64 | 39.05 ▼2.34 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 39.25 ▼1.41 | 35.68 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.17 ▼0.09 | 691.59 ▲42.84 | 51.76 ▼4.03 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▼0.09 | 98.70 ▼1.57 | 43.77 ▼3.86 |
Kudos /wp-admin/options-general.php?page=kudos | 1,301 | 1.73 | 24.70 | 49.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kudos
- > Warning in wp-content/plugins/kudos/php/settings.php+50
Use of undefined constant FVP_VERSION - assumed 'FVP_VERSION' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=kudos
- > 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=kudos
- > 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=kudos
- > Notice in wp-content/plugins/kudos/php/settings.php+199
Undefined offset: 1
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kudos/kudos.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: star, plus, svbtlecom, ajax, like...
kudos/kudos.php Passed 13 tests
The primary PHP file in "Kudos" version 1.1.1 is used by WordPress to initiate all plugin functionality
37 characters long description:
Svbtle.com style kudos for your blog.
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
Everything looks great! No dangerous files found in this plugin1,185 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 138 | 282 | 640 |
JavaScript | 3 | 63 | 48 | 287 |
CSS | 2 | 10 | 0 | 258 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 14.60 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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/heart_60x60.png | 2.14KB | 0.78KB | ▼ 63.51% |