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.02MB] [CPU: ▼4.57ms] Passed 4 tests
This is a short check of server-side resources used by Mahjong Tiles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.26 ▼2.00 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.33 ▼6.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.75 ▲0.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.86 ▼10.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.95 ▲0.83 |
Mahjong Tiles /wp-admin/options-general.php?page=mahjong-tiles | 3.23 | 34.81 |
Server storage [IO: ▲0.11MB] [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: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Mahjong Tiles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.31 ▼1.07 | 1.84 ▼0.35 | 42.48 ▼8.33 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▲0.95 | 93.37 ▼21.78 | 37.99 ▼7.41 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 33.94 ▼3.01 | 34.31 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.75 ▲0.26 | 670.02 ▲30.54 | 57.17 ▲7.92 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▲0.00 | 93.41 ▼2.39 | 44.57 ▼0.41 |
Mahjong Tiles /wp-admin/options-general.php?page=mahjong-tiles | 862 | 2.01 | 23.92 | 70.39 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mahjong-tiles/mahjongtiles.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== mahjong-tiles ===
)
mahjong-tiles/mahjongtiles.php 92% from 13 tests
The main PHP script in "Mahjong Tiles" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mahjong-tiles.php" instead of "mahjongtiles.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin107 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 21 | 107 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tile_images/c1.png | 1.93KB | 1.51KB | ▼ 21.78% |
tile_images/gd.png | 2.25KB | 1.65KB | ▼ 26.56% |
tile_images/d8.png | 2.83KB | 1.85KB | ▼ 34.64% |
tile_images/d4.png | 2.29KB | 1.55KB | ▼ 32.52% |
tile_images/b9.png | 3.68KB | 2.08KB | ▼ 43.30% |