Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.29MB] [CPU: ▲15.04ms] Passed 4 tests
Analyzing server-side resources used by GD Rating System
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.24 ▲2.78 | 62.84 ▲16.44 |
Dashboard /wp-admin | 6.78 ▲3.43 | 71.06 ▲7.42 |
Posts /wp-admin/edit.php | 6.83 ▲3.47 | 71.15 ▲15.48 |
Add New Post /wp-admin/post-new.php | 9.61 ▲3.72 | 123.01 ▲26.54 |
Media Library /wp-admin/upload.php | 6.70 ▲3.47 | 59.56 ▲20.80 |
Server storage [IO: ▲4.32MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 498 new files
Database: 6 new tables, 21 new options
New tables |
---|
wp_gdrts_cache |
wp_gdrts_items |
wp_gdrts_logs |
wp_gdrts_items_basic |
wp_gdrts_logmeta |
wp_gdrts_itemmeta |
New WordPress options |
---|
widget_gdrts_stars_rating_block |
dev4press_gd-rating-system_templates |
dev4press_gd-rating-system_load |
widget_gdrts_stars_rating_list |
dev4press_gd-rating-system_rules |
dev4press_gd-rating-system_methods |
dev4press_gd-rating-system_settings |
widget_gdrts_like_this_block |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
GD Rating System: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.76 ▲0.83 | 1.51 ▼0.17 | 45.39 ▲1.07 |
Dashboard /wp-admin | 2,264 ▲90 | 5.64 ▲0.04 | 83.85 ▼25.12 | 42.11 ▼2.58 |
Posts /wp-admin/edit.php | 2,172 ▲72 | 2.03 ▲0.04 | 37.46 ▼1.60 | 36.12 ▼0.57 |
Add New Post /wp-admin/post-new.php | 11,062 ▲9,527 | 19.46 ▲1.26 | 937.33 ▲303.05 | 43.50 ▼28.35 |
Media Library /wp-admin/upload.php | 1,469 ▲69 | 4.27 ▲0.07 | 96.56 ▼8.04 | 47.47 ▼2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 6 tables in the database
- wp_gdrts_items_basic
- wp_gdrts_itemmeta
- wp_gdrts_cache
- wp_gdrts_logmeta
- wp_gdrts_logs
- wp_gdrts_items
- This plugin did not uninstall successfully, leaving 21 options in the database
- dev4press_gd-rating-system_methods
- dev4press_gd-rating-system_addons
- dev4press_gd-rating-system_core
- can_compress_scripts
- widget_recent-posts
- dev4press_gd-rating-system_early
- dev4press_gd-rating-system_info
- theysaidso_admin_options
- db_upgraded
- widget_gdrts_stars_rating_block
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gd-rating-system/templates/gdrts--system--run-javascript-core.php
- 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrts_loop() in wp-content/plugins/gd-rating-system/templates/like-this/gdrts--like-this--list--widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-rating-system/addons/shortcode-builder/forms/shortcode.php:6
- > PHP Warning
include(GDRTS_PATHforms/shared/top.php): failed to open stream: No such file or directory in wp-content/plugins/gd-rating-system/addons/shortcode-builder/forms/shortcodes.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrts_loop() in wp-content/plugins/gd-rating-system/templates/like-this/gdrts--like-this--list--default-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrts_loop() in wp-content/plugins/gd-rating-system/templates/like-this/gdrts--like-this--list--shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrts_loop() in wp-content/plugins/gd-rating-system/templates/like-this/gdrts--like-this--single--classic.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrtsa_rich_snippets() in wp-content/plugins/gd-rating-system/addons/rich-snippets/snippets/blog_posting/meta.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrts_loop() in wp-content/plugins/gd-rating-system/templates/like-this/gdrts--like-this--single--default.php:3
- > PHP Notice
Undefined variable: post in wp-content/plugins/gd-rating-system/addons/rich-snippets/forms/preview.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function gdrts_loop() in wp-content/plugins/gd-rating-system/templates/stars-rating/gdrts--stars-rating--single--feed.php:3
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: rate posts, vote, stars, dev4press, rating...
gd-rating-system/gd-rating-system.php 92% from 13 tests
The principal PHP file in "GD Rating System" v. 3.5 is loaded by WordPress automatically on each request
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected43,367 lines of code in 442 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 296 | 7,462 | 1,076 | 29,177 |
CSS | 50 | 860 | 47 | 5,504 |
JavaScript | 65 | 611 | 156 | 3,603 |
SVG | 3 | 0 | 0 | 3,223 |
Sass | 28 | 352 | 0 | 1,860 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 185 | |
▷ Abstract classes | 32 | 17.30% |
▷ Concrete classes | 153 | 82.70% |
▷ Final classes | 0 | 0.00% |
Methods | 1,525 | |
▷ Static methods | 86 | 5.64% |
▷ Public methods | 1,233 | 80.85% |
▷ Protected methods | 157 | 10.30% |
▷ Private methods | 135 | 8.85% |
Functions | 251 | |
▷ Named functions | 251 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 63 | |
▷ Global constants | 23 | 36.51% |
▷ Class constants | 40 | 63.49% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.42MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/methods/stars/heart.png | 28.34KB | 13.36KB | ▼ 52.87% |
css/methods/stars/crystal.png | 62.42KB | 20.72KB | ▼ 66.80% |
css/methods/stars/star.png | 27.93KB | 14.45KB | ▼ 48.25% |
css/methods/likes/like.png | 8.89KB | 4.15KB | ▼ 53.29% |
css/methods/stars/snowflake.png | 69.97KB | 33.54KB | ▼ 52.06% |