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.01MB] [CPU: ▼6.91ms] Passed 4 tests
A check of server-side resources used by WoPo Solitaire
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.99 ▲0.63 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.54 ▼2.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.53 ▼12.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.56 ▼13.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.54 ▲1.23 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WoPo Solitaire
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.00 ▼0.73 | 1.74 ▼0.08 | 43.73 ▲3.50 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.11 | 86.40 ▼0.80 | 39.69 ▼0.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.04 | 33.72 ▼2.27 | 34.63 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.18 ▼0.06 | 660.47 ▲25.84 | 54.25 ▲3.97 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.12 ▼0.06 | 107.74 ▲5.39 | 48.84 ▲3.34 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wopo-solitaire-web-based-game-online/wopo-solitaire.php:21
- > 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 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: game, app, wopo, javascript, online...
wopo-solitaire-web-based-game-online/wopo-solitaire.php 62% from 13 tests
This is the main PHP file of "WoPo Solitaire" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("wopo-solitaire-web-based-game-online.php" instead of "wopo-solitaire.php")
- Requires PHP: The required version number must match the one declared in readme.txt ("5.2.4" instead of "7.1")
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "5.2")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected989 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 95 | 84 | 748 |
CSS | 3 | 11 | 2 | 164 |
PHP | 1 | 4 | 14 | 39 |
HTML | 1 | 0 | 0 | 31 |
Markdown | 1 | 7 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.54MB with 0.30MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
html/screen-shot-win.png | 376.33KB | 84.07KB | ▼ 77.66% |
html/src/spritesheet.png | 32.00KB | 30.50KB | ▼ 4.69% |
html/screen-shot.png | 144.65KB | 24.96KB | ▼ 82.75% |