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.60MB] [CPU: ▲5.80ms] Passed 4 tests
Analyzing server-side resources used by WP Tweaks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 54.87 ▲19.09 |
Dashboard /wp-admin | 3.90 ▲0.59 | 54.56 ▲3.64 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 60.10 ▼3.10 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 92.46 ▲3.57 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 53.21 ▲22.00 |
Tweaks /wp-admin/options-general.php?page=wp-tweaks | 3.88 | 51.45 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Tweaks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,220 ▼542 | 14.20 ▼0.07 | 1.43 ▼0.21 | 41.11 ▲0.94 |
Dashboard /wp-admin | 1,676 ▼499 | 5.44 ▼0.13 | 87.03 ▼23.18 | 32.11 ▼10.44 |
Posts /wp-admin/edit.php | 2,002 ▼98 | 2.06 ▲0.05 | 36.82 ▼6.52 | 31.63 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 20.74 ▼1.87 | 669.66 ▲60.61 | 34.69 ▼30.88 |
Media Library /wp-admin/upload.php | 1,337 ▼66 | 4.08 ▼0.10 | 98.87 ▼1.39 | 42.19 ▼1.49 |
Tweaks /wp-admin/options-general.php?page=wp-tweaks | 2,648 | 6.72 | 146.17 | 95.00 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tweaks/includes/tweaks/hide-admin-notices.php:8
- > PHP Fatal error
Uncaught Error: Class 'Tweaks\\Dependencies\\WP_Options_Page' not found in wp-content/plugins/wp-tweaks/classes/Settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-tweaks/includes/tweaks/disable-comments.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: security, tweaks, emoji, xmlrpc, performance...
wp-tweaks/wp-tweaks.php Passed 13 tests
The main PHP file in "WP Tweaks" ver. 2.3.0 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Several opinionated WordPress tweaks focused in security and performance.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,694 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 800 | 1,180 | 3,477 |
PO File | 1 | 75 | 89 | 184 |
JSON | 2 | 0 | 0 | 32 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 41.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 160 | |
▷ Static methods | 28 | 17.50% |
▷ Public methods | 89 | 55.62% |
▷ Protected methods | 64 | 40.00% |
▷ Private methods | 7 | 4.38% |
Functions | 51 | |
▷ Named functions | 47 | 92.16% |
▷ Anonymous functions | 4 | 7.84% |
Constants | 7 | |
▷ Global constants | 2 | 28.57% |
▷ Class constants | 5 | 71.43% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin