Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.77ms] Passed 4 tests
Server-side resources used by WP Mechanic
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.43 ▲0.96 | 46.32 ▲4.61 |
Dashboard /wp-admin | 4.12 ▲0.82 | 51.85 ▲6.07 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 54.05 ▲8.56 |
Add New Post /wp-admin/post-new.php | 3.94 ▼1.94 | 44.11 ▼54.33 |
Media Library /wp-admin/upload.php | 4.04 ▲0.82 | 41.69 ▲9.23 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
wm_login_grid_display |
Browser metrics Passed 4 tests
Checking browser requirements for WP Mechanic
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲178 | 13.90 ▼0.69 | 6.55 ▲4.83 | 35.99 ▼4.16 |
Dashboard /wp-admin | 2,215 ▲30 | 5.93 ▲0.08 | 100.63 ▲1.06 | 83.65 ▲37.08 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.06 ▲0.04 | 41.28 ▲1.16 | 32.91 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 23.20 ▲5.09 | 677.61 ▲66.55 | 35.69 ▼21.74 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.19 ▼0.00 | 104.52 ▲4.60 | 44.79 ▲1.30 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- wm_login_grid_display
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-mechanic/index.php 85% from 13 tests
The main PHP file in "WP Mechanic" ver. 1.6.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-mechanic.php" instead of "index.php")
- 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,198 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,496 | 621 | 3,797 |
CSS | 2 | 23 | 3 | 203 |
JavaScript | 2 | 56 | 13 | 198 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 31.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 62 | 36.47% |
▷ Public methods | 161 | 94.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 5.29% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 33 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
12 PNG files occupy 0.70MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/android-applications/woocommerce-customers.png | 33.33KB | 13.61KB | ▼ 59.17% |
images/sample.png | 9.60KB | 0.75KB | ▼ 92.18% |
images/android-applications/wp-docs.png | 163.30KB | 127.29KB | ▼ 22.05% |
images/android-applications/wordpress-users.png | 53.69KB | 19.88KB | ▼ 62.97% |
images/android-applications/wordpress-users-management.png | 60.77KB | 21.26KB | ▼ 65.02% |