Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼34.27ms] Passed 4 tests
An overview of server-side resources used by WP Logger - Tenbulls
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 23.42 ▼25.38 |
Dashboard /wp-admin | 4.09 ▲0.79 | 23.72 ▼25.65 |
Posts /wp-admin/edit.php | 4.09 ▲0.74 | 23.85 ▼20.50 |
Add New Post /wp-admin/post-new.php | 4.09 ▼1.79 | 21.51 ▼65.55 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 22.72 ▼9.89 |
Options /wp-admin/admin.php?page=WPLoggerOptions&tab=1 | 4.09 | 22.20 |
Redux Framework /wp-admin/tools.php?page=redux-about | 4.09 | 25.56 |
Server storage [IO: ▲5.59MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 827 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
wp_logger-transients |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
wp_logger |
redux_version_upgraded_from |
Browser metrics Passed 4 tests
WP Logger - Tenbulls: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲156 | 13.20 ▼1.18 | 1.82 ▼0.17 | 44.10 ▼3.96 |
Dashboard /wp-admin | 2,311 ▲123 | 4.86 ▼1.04 | 104.54 ▼2.43 | 39.24 ▼3.83 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.01 ▼0.01 | 32.89 ▼5.34 | 33.41 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 17.61 ▼5.66 | 649.62 ▼9.66 | 49.07 ▼6.13 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.15 ▼0.04 | 93.50 ▼0.86 | 43.50 ▲1.33 |
Options /wp-admin/admin.php?page=WPLoggerOptions&tab=1 | 1,235 | 2.99 | 67.45 | 44.29 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,068 | 3.69 | 70.74 | 62.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/wp-logger-tenbulls/vendor/redux-framework/ReduxCore/inc/class.redux_filesystem.php+29
Creating default object from empty value
- Zombie WordPress options were found after uninstall: 9 options
- redux_version_upgraded_from
- widget_recent-posts
- wp_logger-transients
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- wp_logger
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=redux-about
- > Warning in wp-content/plugins/wp-logger-tenbulls/vendor/redux-framework/ReduxCore/inc/class.redux_filesystem.php+29
Creating default object from empty value
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
- 300× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/wp-logger-tenbulls/vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-logger-tenbulls/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-logger-tenbulls/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/wp-logger-tenbulls/vendor/monolog/monolog/src/Monolog/Logger.php:28
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/wp-logger-tenbulls/vendor/redux-framework/ReduxCore/inc/themecheck/checks/embedded.php:3
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wp-logger-tenbulls/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'Gelf\\MessagePublisher' not found in wp-content/plugins/wp-logger-tenbulls/vendor/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php:17
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-logger-tenbulls/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/wp-logger-tenbulls/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-logger-tenbulls/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Contributors: Contributors not specified
wp-logger-tenbulls/wp-logger.php 85% from 13 tests
The entry point to "WP Logger - Tenbulls" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-logger-tenbulls.php" instead of "wp-logger.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected64,668 lines of code in 678 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 445 | 8,173 | 14,308 | 37,822 |
JavaScript | 86 | 2,625 | 2,144 | 12,229 |
Sass | 54 | 1,180 | 60 | 7,560 |
Markdown | 18 | 972 | 0 | 3,010 |
JSON | 9 | 184 | 0 | 1,610 |
SVG | 1 | 0 | 0 | 934 |
CSS | 46 | 344 | 37 | 929 |
XML | 6 | 8 | 0 | 172 |
YAML | 5 | 16 | 20 | 124 |
Bourne Shell | 4 | 31 | 50 | 122 |
LESS | 2 | 2 | 0 | 81 |
HTML | 1 | 7 | 0 | 60 |
make | 1 | 6 | 0 | 15 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 879.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 7 | |
Traits | 2 | |
Classes | 431 | |
▷ Abstract classes | 10 | 2.32% |
▷ Concrete classes | 421 | 97.68% |
▷ Final classes | 3 | 0.71% |
Methods | 2,097 | |
▷ Static methods | 194 | 9.25% |
▷ Public methods | 1,618 | 77.16% |
▷ Protected methods | 325 | 15.50% |
▷ Private methods | 154 | 7.34% |
Functions | 116 | |
▷ Named functions | 35 | 30.17% |
▷ Anonymous functions | 81 | 69.83% |
Constants | 142 | |
▷ Global constants | 4 | 2.82% |
▷ Class constants | 138 | 97.18% |
▷ Public constants | 138 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
36 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/redux-framework/ReduxCore/assets/img/1c.png | 0.13KB | 0.13KB | ▼ 0.72% |
vendor/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/redux-framework/ReduxCore/assets/img/2cr.png | 2.92KB | 0.24KB | ▼ 91.69% |
vendor/redux-framework/ReduxCore/assets/img/toggle_tabs.png | 0.35KB | 0.35KB | 0.00% |
vendor/redux-framework/sample/patterns/triangular.png | 0.21KB | 0.22KB | 0.00% |