Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.12ms] Passed 4 tests
A check of server-side resources used by
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 49.36 ▲7.43 |
Dashboard /wp-admin | 3.43 ▲0.12 | 48.16 ▼1.35 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.96 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 94.81 ▼4.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.60 ▼2.36 |
Add New /wp-admin/post-new.php?post_type=wha_puzzle | 3.47 | 54.13 |
All Puzzles /wp-admin/edit.php?post_type=wha_puzzle | 3.39 | 42.91 |
Server storage [IO: ▲3.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,191 ▲430 | 16.77 ▲2.49 | 51.43 ▲49.52 | 47.53 ▲4.85 |
Dashboard /wp-admin | 2,237 ▲57 | 5.66 ▲0.01 | 93.33 ▲4.62 | 40.18 ▼5.49 |
Posts /wp-admin/edit.php | 2,148 ▲45 | 2.66 ▲0.69 | 46.92 ▲10.82 | 35.76 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,558 ▲7 | 23.58 ▲5.22 | 686.51 ▲33.27 | 35.28 ▼41.08 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 5.24 ▲0.99 | 112.86 ▲6.36 | 47.73 ▼2.39 |
Add New /wp-admin/post-new.php?post_type=wha_puzzle | 2,455 | 8.66 | 165.21 | 146.45 |
All Puzzles /wp-admin/edit.php?post_type=wha_puzzle | 1,109 | 2.64 | 40.60 | 40.66 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
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 93% 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #4 (Example game over)
wha-puzzle/wha-puzzle.php 92% from 13 tests
Analyzing the main PHP file in "" version 1.0.9
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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
Good job! No executable or dangerous file extensions detected16,502 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 3,515 | 2,317 | 15,344 |
PHP | 2 | 165 | 78 | 450 |
CSS | 3 | 19 | 2 | 427 |
Sass | 1 | 25 | 0 | 273 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 2.41MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-restart.png | 4.65KB | 2.45KB | ▼ 47.31% |
images/icon-start.png | 3.09KB | 1.85KB | ▼ 40.11% |
images/tw.png | 2.87KB | 1.88KB | ▼ 34.50% |
images/screenshot-1.png | 128.95KB | 45.55KB | ▼ 64.68% |
images/icon-pause.png | 2.81KB | 1.77KB | ▼ 37.06% |