Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.64ms] Passed 4 tests
An overview of server-side resources used by Simple voting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 44.00 ▼1.72 |
Dashboard /wp-admin | 3.40 ▲0.06 | 50.76 ▼1.74 |
Posts /wp-admin/edit.php | 3.52 ▲0.12 | 48.80 ▼3.78 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.06 | 90.36 ▼19.31 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 38.37 ▲0.85 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple voting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.74 ▲0.09 | 1.68 ▼0.15 | 42.92 ▼0.59 |
Dashboard /wp-admin | 2,195 ▲18 | 5.51 ▼0.10 | 84.06 ▼5.41 | 36.66 ▼5.08 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.01 | 35.08 ▼6.30 | 32.56 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.33 ▲4.97 | 671.87 ▼9.83 | 57.86 ▼5.12 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▲0.07 | 102.30 ▲2.05 | 46.59 ▲2.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== simple-voting ===
)
simple-voting/simple-voting.php Passed 13 tests
The primary PHP file in "Simple voting" version 1.0.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
Simple voting and rating system. In simplest case you just need to insert in your text one word: `[voting]`.
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
No dangerous file extensions were detected823 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 191 | 483 | 539 |
JavaScript | 1 | 35 | 9 | 118 |
CSS | 1 | 15 | 21 | 106 |
PO File | 2 | 12 | 12 | 60 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 36 | 83.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 16.28% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/user.png | 0.50KB | 0.50KB | 0.00% |
images/mail.png | 0.42KB | 0.43KB | 0.00% |
images/comments.png | 0.58KB | 0.59KB | 0.00% |