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.04MB] [CPU: ▼9.88ms] Passed 4 tests
Server-side resources used by Tweakr - Utility Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.21 ▼9.83 |
Dashboard /wp-admin | 3.36 ▲0.02 | 51.38 ▼16.08 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.48 ▲7.73 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 80.23 ▼14.60 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.58 ▲0.99 |
Tweaks /wp-admin/admin.php?page=tweakr-tweaks | 3.32 | 35.20 |
Analytics /wp-admin/admin.php?page=tweakr-analytics | 3.31 | 32.74 |
About /wp-admin/admin.php?page=tweakr-about | 3.29 | 32.67 |
System /wp-admin/admin.php?page=tweakr-system | 3.33 | 33.51 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
tweakr-version |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
tweakr-cache-hash |
Browser metrics Passed 4 tests
An overview of browser requirements for Tweakr - Utility Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.28 ▼0.46 | 1.69 ▼0.08 | 44.32 ▼0.19 |
Dashboard /wp-admin | 2,230 ▲50 | 5.55 ▼0.13 | 91.47 ▼3.63 | 41.55 ▲1.44 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.98 ▼0.12 | 35.37 ▼0.68 | 34.28 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,554 ▲19 | 22.85 ▲4.82 | 677.20 ▲69.99 | 60.22 ▼4.06 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.23 ▼0.06 | 99.19 ▼0.04 | 49.05 ▲3.96 |
Tweaks /wp-admin/admin.php?page=tweakr-tweaks | 1,608 | 2.10 | 27.00 | 55.06 |
Analytics /wp-admin/admin.php?page=tweakr-analytics | 1,309 | 2.24 | 30.56 | 41.83 |
About /wp-admin/admin.php?page=tweakr-about | 973 | 2.20 | 24.94 | 54.87 |
System /wp-admin/admin.php?page=tweakr-system | 1,585 | 2.14 | 26.25 | 44.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- tweakr-version
- tweakr-cache-hash
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Tweakr\\skltn\\RewriteRuleHelper' not found in wp-content/plugins/tweakr/modules/core/RewriteRules.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tweakr/Tweakr.php:25
- > PHP Fatal error
Uncaught Error: Class 'tweakr\\skltn\\Plugin' not found in wp-content/plugins/tweakr/modules/core/Tweakr.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=tweakr-about
- > Network (severe)
wp-content/plugins/tweakr/resources/admin/badge150.png - Failed to load resource: the server responded with a status of 404 (Not 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 need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
tweakr/Tweakr.php 92% from 13 tests
The entry point to "Tweakr - Utility Toolkit" version 2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("tweakr.php" instead of "Tweakr.php")
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
Success! There were no dangerous files found in this plugin3,011 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 886 | 934 | 2,468 |
CSS | 3 | 63 | 56 | 287 |
JavaScript | 6 | 53 | 91 | 167 |
LESS | 1 | 5 | 2 | 81 |
HTML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 44 | 30.14% |
▷ Public methods | 137 | 93.84% |
▷ Protected methods | 3 | 2.05% |
▷ Private methods | 6 | 4.11% |
Functions | 38 | |
▷ Named functions | 1 | 2.63% |
▷ Anonymous functions | 37 | 97.37% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/admin/badge80.png | 4.88KB | 2.18KB | ▼ 55.25% |
resources/admin/badge40.png | 3.71KB | 1.35KB | ▼ 63.75% |