Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.97MB] [CPU: ▼317.77ms] Passed 4 tests
A check of server-side resources used by Word Search Puzzles game
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 58.70 ▲9.06 |
Dashboard /wp-admin | 3.23 ▼0.18 | 19.41 ▼13.84 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.67 ▼0.53 |
Add New Post /wp-admin/post-new.php | 3.26 ▼3.71 | 27.67 ▼1,246.50 |
Media Library /wp-admin/upload.php | 3.25 ▼0.05 | 18.48 ▼10.21 |
Settings /wp-admin/edit.php?post_type=wha_wordsearch&page=wha-wordsearch | 3.22 | 18.90 |
Add New /wp-admin/post-new.php?post_type=wha_wordsearch | 3.26 | 26.37 |
All wordsearch /wp-admin/edit.php?post_type=wha_wordsearch | 3.27 | 20.60 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Word Search Puzzles game
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,207 ▲453 | 18.26 ▲2.52 | 33.86 ▲28.22 | 2.82 ▼0.22 |
Dashboard /wp-admin | 2,945 ▲84 | 6.04 ▼0.17 | 116.67 ▼12.14 | 155.04 ▼2.61 |
Posts /wp-admin/edit.php | 2,741 ▲47 | 3.26 ▲0.02 | 66.16 ▲3.08 | 141.56 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,696 ▲6 | 17.85 ▼0.99 | 399.63 ▲8.43 | 153.21 ▼5.52 |
Media Library /wp-admin/upload.php | 1,751 ▲56 | 5.56 ▲0.04 | 125.48 ▼10.52 | 186.76 ▼5.54 |
Settings /wp-admin/edit.php?post_type=wha_wordsearch&page=wha-wordsearch | 2,489 | 10.20 | 179.15 | 198.16 |
Add New /wp-admin/post-new.php?post_type=wha_wordsearch | 3,374 | 9.76 | 171.96 | 256.31 |
All wordsearch /wp-admin/edit.php?post_type=wha_wordsearch | 1,427 | 3.19 | 59.40 | 113.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wha_wordsearch
- > Notice in wp-content/plugins/wha-wordsearch/wha-wordsearch.php+66
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=wha_wordsearch
- > Notice in wp-content/plugins/wha-wordsearch/wha-wordsearch.php+823
Undefined index: myplugin_noncename
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 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: puzzles, search, crossword, game, wordsearch
wha-wordsearch/wha-wordsearch.php 85% from 13 tests
The main PHP file in "Word Search Puzzles game" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8,675 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,679 |
CSS | 4 | 0 | 13 | 2,330 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 4 | 0 | 83 | 138 |
PHP | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 20 | |
▷ Named functions | 20 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.39MB with 0.26MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/image/screenshot-2.png | 174.06KB | 47.50KB | ▼ 72.71% |
res/image/screenshot-3.png | 51.39KB | 22.11KB | ▼ 56.97% |
res/image/screenshot-1.png | 123.99KB | 28.60KB | ▼ 76.93% |
res/image/screenshot-4.png | 45.09KB | 17.54KB | ▼ 61.10% |