Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼2.15ms] Passed 4 tests
A check of server-side resources used by Machete
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 42.46 ▲3.48 |
Dashboard /wp-admin | 3.80 ▲0.45 | 52.13 ▼8.10 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 55.95 ▲10.77 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 98.50 ▼6.49 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 39.60 ▲2.53 |
Optimization /wp-admin/admin.php?page=machete-cleanup | 3.68 | 47.34 |
Analytics & Code /wp-admin/admin.php?page=machete-utils | 3.68 | 36.27 |
Social Sharing /wp-admin/admin.php?page=machete-social | 3.66 | 38.20 |
Maintenance Mode /wp-admin/admin.php?page=machete-maintenance | 3.65 | 37.17 |
Machete Dashboard /wp-admin/admin.php?page=machete | 3.67 | 39.10 |
Cookies & GDPR /wp-admin/admin.php?page=machete-cookies | 3.68 | 44.81 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Machete
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.46 ▲0.16 | 1.88 ▼0.12 | 41.81 ▼2.43 |
Dashboard /wp-admin | 2,248 ▲60 | 6.03 ▲1.07 | 109.93 ▲6.06 | 71.57 ▲32.14 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.00 ▲0.00 | 37.26 ▼7.16 | 33.20 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 17.46 ▼5.75 | 713.59 ▲96.42 | 55.29 ▼5.26 |
Media Library /wp-admin/upload.php | 1,445 ▲54 | 4.14 ▼0.09 | 113.34 ▲7.00 | 47.11 ▲2.85 |
Optimization /wp-admin/admin.php?page=machete-cleanup | 1,456 | 1.88 | 31.75 | 40.58 |
Analytics & Code /wp-admin/admin.php?page=machete-utils | 1,174 | 3.67 | 53.22 | 44.19 |
Social Sharing /wp-admin/admin.php?page=machete-social | 1,031 | 2.07 | 27.19 | 33.14 |
Maintenance Mode /wp-admin/admin.php?page=machete-maintenance | 1,027 | 1.88 | 26.49 | 35.25 |
Machete Dashboard /wp-admin/admin.php?page=machete | 1,300 | 2.01 | 24.74 | 56.79 |
Cookies & GDPR /wp-admin/admin.php?page=machete-cookies | 1,153 | 1.73 | 27.14 | 45.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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
- > GET request to /wp-admin/admin.php?page=machete-utils
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
file_get_contents(wp-content/uploads/machete/header.html): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=machete-utils
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
file_get_contents(wp-content/uploads/machete/footer.html): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=machete-utils
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
file_get_contents(wp-content/uploads/machete/body.html): failed to open stream: No such file or directory
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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: css, code, analytics, admin, javascript...
machete/machete.php 92% from 13 tests
The main PHP file in "Machete" ver. 4.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin6,233 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 708 | 966 | 3,851 |
PO File | 1 | 353 | 503 | 1,032 |
CSS | 9 | 85 | 6 | 859 |
JavaScript | 7 | 23 | 8 | 247 |
Markdown | 2 | 44 | 0 | 157 |
SVG | 16 | 0 | 0 | 32 |
HTML | 3 | 0 | 0 | 28 |
XML | 1 | 17 | 32 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.08 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 58.82% |
▷ Protected methods | 26 | 30.59% |
▷ Private methods | 9 | 10.59% |
Functions | 52 | |
▷ Named functions | 13 | 25.00% |
▷ Anonymous functions | 39 | 75.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/social/banner.png | 1.48KB | 1.57KB | 0.00% |
inc/woocommerce/icon.png | 1.86KB | 1.39KB | ▼ 25.22% |
inc/maintenance/banner.png | 1.22KB | 1.22KB | 0.00% |
inc/cleanup/icon.png | 2.69KB | 2.06KB | ▼ 23.13% |
img/logo_machete.png | 4.01KB | 1.94KB | ▼ 51.54% |