Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.06ms] Passed 4 tests
This is a short check of server-side resources used by 2048
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.33 ▲3.86 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.53 ▼3.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.01 ▼1.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.62 ▼25.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.49 ▼1.07 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 2048
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.18 | 1.83 ▲0.02 | 43.30 ▼2.72 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▲0.03 | 96.00 ▲5.73 | 41.30 ▼0.98 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 34.54 ▼5.59 | 34.40 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.26 ▲0.35 | 670.73 ▲4.86 | 72.33 ▲5.10 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.11 ▼0.20 | 100.74 ▼3.47 | 45.87 ▲3.58 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/2048-number-game/2048-number-game.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% 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: No descriptions were found for these screenshots #2, #3, #4, #5, #6 in 2048-number-game/assets to your readme.txt
2048-number-game/2048-number-game.php Passed 13 tests
"2048" version 0.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
2048 is a number combination game with the aim to achieve 2048 tile.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,047 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 1,979 |
PHP | 4 | 158 | 144 | 1,171 |
CSS | 4 | 71 | 0 | 1,053 |
JavaScript | 13 | 180 | 64 | 816 |
HTML | 1 | 2 | 0 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 57.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 3 | 6.98% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 2 | 4.65% |
▷ Private methods | 3 | 6.98% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
2048-icon.png | 0.59KB | 0.54KB | ▼ 9.09% |