Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▼5.63ms] Passed 4 tests
An overview of server-side resources used by Comment Genius
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 39.96 ▼4.92 |
Dashboard /wp-admin | 3.37 ▲0.03 | 49.43 ▲0.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 49.45 ▲0.82 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.05 | 82.84 ▼17.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 39.41 ▼0.38 |
Comment Genius /wp-admin/options-general.php?page=cgm | 3.32 | 36.86 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 16 new options
New WordPress options |
---|
cg-opacity |
cg-genius-height |
cg-close |
cg-genius-padding |
cg-overlay-close |
cg-genius-width |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
cg-enabled |
... |
Browser metrics Passed 4 tests
Comment Genius: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲257 | 14.06 ▼0.67 | 11.94 ▲9.89 | 45.83 ▲1.55 |
Dashboard /wp-admin | 2,272 ▲95 | 5.87 ▲0.27 | 100.39 ▲13.18 | 43.96 ▲3.84 |
Posts /wp-admin/edit.php | 2,179 ▲79 | 2.36 ▲0.36 | 41.16 ▼1.28 | 36.19 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.18 ▼0.34 | 680.16 ▼5.60 | 37.40 ▼13.29 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.56 ▲0.43 | 98.97 ▼15.52 | 45.21 ▼10.22 |
Comment Genius /wp-admin/options-general.php?page=cgm | 946 | 2.08 | 28.06 | 38.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 16 options
- cg-close
- cg-title
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- cg-genius-padding
- cg-esc-close
- cg-genius-height
- cg-genius-width
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× 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/comment-genius/cgm.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/comment-genius/cgm-options.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/comment-genius/cgm.php on line 11
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: comment, popup
comment-genius/cgm.php 85% from 13 tests
The main file in "Comment Genius" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("comment-genius.php" instead of "cgm.php")
- Description: The description should be shorter than 140 characters (currently 275 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 detected1,082 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 202 | 83 | 816 |
PHP | 2 | 28 | 16 | 236 |
CSS | 1 | 4 | 11 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/colorbox-master/images/controls.png | 1.59KB | 1.67KB | 0.00% |