Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.18ms] Passed 4 tests
An overview of server-side resources used by Slide Puzzle
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.98 ▼4.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.27 ▲0.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.13 ▼6.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.45 ▼17.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.33 ▲5.02 |
Slide Puzzle /wp-admin/options-general.php?page=sudoku-sliding | 3.17 | 27.31 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Slide Puzzle: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.65 ▼1.00 | 7.74 ▲6.15 | 43.68 ▲1.05 |
Dashboard /wp-admin | 2,196 ▲19 | 5.54 ▼0.13 | 84.97 ▼11.24 | 36.97 ▼10.14 |
Posts /wp-admin/edit.php | 2,086 ▼14 | 1.99 ▼0.05 | 35.09 ▼6.68 | 36.31 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.10 ▲4.78 | 680.24 ▲81.02 | 59.70 ▼11.09 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▼0.00 | 109.59 ▲5.39 | 48.27 ▲4.61 |
Slide Puzzle /wp-admin/options-general.php?page=sudoku-sliding | 880 | 1.99 | 22.49 | 29.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sudoku-sliding
- > Notice in wp-content/plugins/slide-puzzle/slide-puzzle.php+217
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slide-puzzle/slide-puzzle.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: game, colome, sliding, slide puzzle, puzzle
slide-puzzle/slide-puzzle.php Passed 13 tests
"Slide Puzzle" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
Include a Sliding Puzzle in your blogs with just one shortcode. is Not flash!!, only html 5 and ccs
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin615 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 32 | 52 | 340 |
PHP | 1 | 59 | 48 | 184 |
CSS | 1 | 12 | 0 | 91 |
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.28 |
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 | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/slide-puzzle-curdown.png | 0.69KB | 0.53KB | ▼ 22.90% |
img/slide-puzzle-curup.png | 0.63KB | 0.50KB | ▼ 21.52% |
img/slide-puzzle-curleft.png | 0.66KB | 0.56KB | ▼ 15.91% |
img/slide-puzzle-curright.png | 0.70KB | 0.57KB | ▼ 18.72% |
slide-puzzle.png | 38.60KB | 10.59KB | ▼ 72.56% |