Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.25ms] Passed 4 tests
Analyzing server-side resources used by Mahjong
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.44 ▲2.48 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.77 ▼2.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.72 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.37 ▼3.53 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.60 ▲4.73 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 561 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Mahjong
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.23 ▼1.15 | 1.74 ▼0.29 | 43.15 ▼8.35 |
Dashboard /wp-admin | 2,222 ▲31 | 5.87 ▲0.99 | 107.99 ▼2.27 | 42.82 ▼1.09 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.01 ▲0.03 | 48.90 ▲7.08 | 38.99 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.28 ▼0.08 | 581.62 ▼91.08 | 51.13 ▼0.36 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.21 ▼0.00 | 96.80 ▼5.51 | 42.58 ▼0.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mahjong/mahjong.php:531
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-2.png) image required
mahjong/mahjong.php Passed 13 tests
The primary PHP file in "Mahjong" version 1.4 is used by WordPress to initiate all plugin functionality
18 characters long description:
Mahjong hai plugin
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
There were no executable files found in this plugin363 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 183 | 339 |
PO File | 1 | 4 | 10 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 100.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
554 PNG files occupy 0.95MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default_large/2s1.png | 0.68KB | 0.33KB | ▼ 51.44% |
screenshot-2.png | 19.36KB | 8.22KB | ▼ 57.53% |
images/default_small/%s2.png | 1.31KB | 1.17KB | ▼ 10.09% |
images/default_middle/1p3.png | 2.25KB | 1.18KB | ▼ 47.39% |
images/default_small/1s1.png | 1.89KB | 1.47KB | ▼ 22.06% |