Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.72MB] [CPU: ▲6.87ms] Passed 4 tests
This is a short check of server-side resources used by GraphComment Comment system
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 46.59 ▲6.11 |
Dashboard /wp-admin | 4.03 ▲0.73 | 56.86 ▲8.31 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 51.30 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 100.45 ▲11.48 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 52.98 ▲15.90 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 96 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gc_comment_pairing |
New WordPress options |
---|
gc_seo_activated |
gc_oauth_redirect_uri |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by GraphComment Comment system
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.18 ▼1.38 | 2.07 ▲0.28 | 42.54 ▼4.71 |
Dashboard /wp-admin | 2,215 ▲27 | 5.98 ▲0.08 | 100.07 ▼15.74 | 80.74 ▲29.28 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▼0.04 | 34.67 ▼2.28 | 35.50 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,690 ▲176 | 22.43 ▲4.74 | 751.54 ▲95.58 | 56.95 ▲3.25 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.21 ▲0.06 | 110.84 ▼4.48 | 51.86 ▲1.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_gc_comment_pairing
- Zombie WordPress options were found after uninstall: 9 options
- gc_oauth_redirect_uri
- can_compress_scripts
- theysaidso_admin_options
- gc_sync_comments
- widget_recent-comments
- gc_seo_activated
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/graphcomment-comment-system/graphcomment.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GcParamsService' not found in wp-content/plugins/graphcomment-comment-system/comments.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/graphcomment-comment-system/class/templates/settings_page_create_website.template.php:3
- > PHP Fatal error
Uncaught Error: Class 'GcImportService' not found in wp-content/plugins/graphcomment-comment-system/class/templates/settings_page_import.template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/graphcomment-comment-system/lib/WP_Async_Task.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/graphcomment-comment-system/class/templates/settings_page_synchro.template.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/graphcomment-comment-system/lib/WP_Async_Task.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/graphcomment-comment-system/lib/WP_Async_Task.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/graphcomment-comment-system/class/templates/settings_page_general.template.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/graphcomment-comment-system/class/templates/login_success.template.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function header_template() in wp-content/plugins/graphcomment-comment-system/class/templates/settings_page_select_website.template.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (57 tag instead of maximum 10); only the first 5 tags are used in your directory listing
graphcomment-comment-system/graphcomment.php 92% from 13 tests
The principal PHP file in "GraphComment Comment system" v. 3.7.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("graphcomment-comment-system.php" instead of "graphcomment.php")
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 detected5,618 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 806 | 690 | 3,157 |
CSS | 7 | 87 | 56 | 976 |
JavaScript | 4 | 126 | 126 | 689 |
PO File | 2 | 254 | 0 | 508 |
SVG | 1 | 0 | 0 | 288 |
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.32 |
Average class complexity | 13.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 26 | 16.15% |
▷ Public methods | 114 | 70.81% |
▷ Protected methods | 7 | 4.35% |
▷ Private methods | 40 | 24.84% |
Functions | 36 | |
▷ Named functions | 27 | 75.00% |
▷ Anonymous functions | 9 | 25.00% |
Constants | 38 | |
▷ Global constants | 32 | 84.21% |
▷ Class constants | 6 | 15.79% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme/vendors/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
theme/vendors/jquery-ui/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
theme/images/icon.png | 0.59KB | 0.72KB | 0.00% |
theme/vendors/jquery-ui/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
theme/vendors/jquery-ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |