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: ▲0.19MB] [CPU: ▼4.47ms] Passed 4 tests
Server-side resources used by Conva Comment System (Beta)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 39.71 ▼5.17 |
Dashboard /wp-admin | 3.68 ▲0.38 | 55.79 ▲6.73 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 53.73 ▲1.72 |
Add New Post /wp-admin/post-new.php | 5.75 ▼0.14 | 82.14 ▼13.85 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 35.09 ▼0.56 |
Social Polling /wp-admin/options-general.php?page=social-polling | 3.53 | 36.51 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/because/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/because/assets/banner-772\303\227250.jpg"
Filesystem: 60 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_social_polling_comments |
wp_social_polling |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
sp_db_version |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Conva Comment System (Beta)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲325 | 15.28 ▲0.90 | 6.94 ▲5.01 | 35.89 ▼13.04 |
Dashboard /wp-admin | 2,352 ▲167 | 6.46 ▲0.64 | 137.59 ▲28.32 | 41.48 ▼3.48 |
Posts /wp-admin/edit.php | 2,258 ▲169 | 3.36 ▲1.31 | 49.35 ▲8.28 | 32.60 ▼4.08 |
Add New Post /wp-admin/post-new.php | 6,573 ▲5,037 | 20.09 ▼3.12 | 874.86 ▲227.43 | 39.11 ▼12.94 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.14 ▼0.07 | 87.41 ▼14.44 | 43.22 ▲1.18 |
Social Polling /wp-admin/options-general.php?page=social-polling | 1,005 | 3.29 | 40.64 | 26.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_social_polling
- wp_social_polling_comments
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- sp_db_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/because/public/views/public.php
- > /wp-content/plugins/because/admin/includes/download.php
- 4× 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/because/public/includes/class-sp_comments.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/because/public/includes/templates/sp_comments.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/because/admin/includes/voting_box.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/because/admin/views/admin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Please fix this invalid URI: ""
because/social-polling.php 85% from 13 tests
Analyzing the main PHP file in "Conva Comment System (Beta)" version 1.6
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("because.php" instead of "social-polling.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
No dangerous file extensions were detected2,495 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 2,189 | 985 | 1,701 |
CSS | 2 | 147 | 204 | 461 |
JavaScript | 3 | 340 | 82 | 244 |
XML | 18 | 0 | 0 | 89 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 37.40 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 64 | |
▷ Static methods | 11 | 17.19% |
▷ Public methods | 49 | 76.56% |
▷ Protected methods | 3 | 4.69% |
▷ Private methods | 12 | 18.75% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/upvote.png | 5.01KB | 1.20KB | ▼ 76.06% |
assets/upvote2.png | 1.94KB | 0.82KB | ▼ 57.70% |
assets/banner-772x250.png | 11.50KB | 5.06KB | ▼ 56.00% |
assets/downvote2.png | 2.01KB | 0.82KB | ▼ 59.14% |
public/assets/images/official logo.png | 21.25KB | 8.41KB | ▼ 60.45% |