Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.67ms] Passed 4 tests
This is a short check of server-side resources used by Crowd Control by Postmatic - Comment moderation decentralized
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.60 ▲0.98 |
Dashboard /wp-admin | 3.32 ▼0.03 | 50.61 ▼17.45 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.52 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.52 ▼25.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.76 ▲3.34 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Crowd Control by Postmatic - Comment moderation decentralized: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲44 | 13.33 ▼1.03 | 4.83 ▲2.62 | 46.33 ▲5.20 |
Dashboard /wp-admin | 2,221 ▲15 | 5.90 ▲0.04 | 105.75 ▲0.81 | 40.74 ▲0.36 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▼0.02 | 35.53 ▼6.36 | 35.48 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼23 | 17.40 ▼1.07 | 670.13 ▲49.10 | 53.26 ▼5.95 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.32 ▲0.12 | 107.63 ▲1.38 | 47.45 ▲5.01 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× 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/crowd-control/crowd-control.php:900
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: moderation, comments, reporting, flag, flagging...
crowd-control/crowd-control.php 92% from 13 tests
The main PHP script in "Crowd Control by Postmatic - Comment moderation decentralized" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 342 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin450 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 99 | 411 | 393 |
JavaScript | 1 | 6 | 2 | 57 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 2 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.92MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-org-assets/banner-772x250.png | 156.53KB | 63.90KB | ▼ 59.18% |
wp-org-assets/icon-256x256.png | 11.98KB | 4.63KB | ▼ 61.32% |
wp-org-assets/screenshot-1.png | 67.67KB | 18.35KB | ▼ 72.87% |
wp-org-assets/screenshot-3.png | 155.05KB | 45.38KB | ▼ 70.73% |
wp-org-assets/icon-128x128.png | 5.57KB | 2.81KB | ▼ 49.62% |