Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/additional-wp-tweaks-options/library_wp.php+1929
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/additional-wp-tweaks-options/library_wp.php:1929
Stack trace:
#0 wp-content/plugins/additional-wp-tweaks-options/library_wp.php(1863): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.11MB] [CPU: ▲9.61ms] Passed 4 tests
A check of server-side resources used by Few WP Tweaks and options
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.57 ▲2.11 | 50.84 ▲9.72 |
Dashboard /wp-admin | 5.46 ▲2.16 | 57.91 ▲12.62 |
Posts /wp-admin/edit.php | 5.51 ▲2.16 | 59.04 ▲14.21 |
Add New Post /wp-admin/post-new.php | 7.98 ▲2.10 | 104.42 ▲1.87 |
Media Library /wp-admin/upload.php | 5.32 ▲2.10 | 50.90 ▲17.06 |
Extra Tweaks /wp-admin/options-general.php?page=extra-wp-tweaks-options | 5.31 | 50.02 |
Server storage [IO: ▲0.39MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_extra_wp_tweaks_options__errors_log |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
extra-wp-tweaks-options |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Few WP Tweaks and options: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.72 ▼0.90 | 1.86 ▼0.19 | 50.60 ▲3.53 |
Dashboard /wp-admin | 2,217 ▲32 | 5.80 ▼0.06 | 98.75 ▼5.23 | 40.19 ▲3.81 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 1.98 ▼0.01 | 38.48 ▼1.18 | 33.32 ▼6.55 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.19 ▲5.12 | 608.60 ▼5.23 | 55.53 ▲1.80 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.21 ▼0.03 | 99.35 ▼2.73 | 45.45 ▲2.53 |
Extra Tweaks /wp-admin/options-general.php?page=extra-wp-tweaks-options | 1,443 | 2.15 | 31.45 | 69.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_extra_wp_tweaks_options__errors_log
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- extra-wp-tweaks-options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/additional-wp-tweaks-options/library_wp.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
Attributes that need to be fixed:
- Contributors: Contributors not specified
additional-wp-tweaks-options/index.php 85% from 13 tests
The main PHP script in "Few WP Tweaks and options" version 1.02 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("additional-wp-tweaks-options.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,172 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,120 | 4,949 | 4,172 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 233.43 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 994.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 790 | |
▷ Static methods | 120 | 15.19% |
▷ Public methods | 787 | 99.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 0.38% |
Functions | 86 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 86 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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