Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.59ms] Passed 4 tests
A check of server-side resources used by Thumbs Rating
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.33 ▼5.11 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.95 ▼12.70 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.72 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.03 ▼3.51 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.70 ▲2.29 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Thumbs Rating
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲86 | 14.24 ▼0.10 | 2.07 ▼0.18 | 43.28 ▼8.93 |
Dashboard /wp-admin | 2,189 ▲15 | 5.56 ▼0.08 | 87.05 ▼10.95 | 38.28 ▼5.42 |
Posts /wp-admin/edit.php | 2,160 ▲63 | 1.98 ▲0.03 | 32.75 ▼5.19 | 34.14 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.78 ▼0.85 | 683.02 ▼30.48 | 57.49 ▲0.49 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.18 ▼0.03 | 94.36 ▼3.74 | 42.83 ▲1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Basic output with the default CSS with the TwentyThirteen theme.), #2 (This text is shown if you try to vote again.)
thumbs-rating/thumbs-rating.php Passed 13 tests
The entry point to "Thumbs Rating" version 5.0.0 is a PHP file that has certain tags in its header comment area
42 characters long description:
Add thumbs up/down rating to your content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected726 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 90 | 36 | 418 |
PHP | 1 | 152 | 65 | 232 |
JavaScript | 1 | 7 | 10 | 47 |
CSS | 1 | 8 | 3 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 40.34KB | 11.33KB | ▼ 71.92% |
screenshot-1.png | 26.49KB | 8.29KB | ▼ 68.69% |