Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.66MB] [CPU: ▲29.35ms] 75% from 4 tests
Server-side resources used by WP Logger
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.66MB on /wp-admin/admin.php?page=wplogger-wizard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.14 ▲5.68 | 75.58 ▲35.91 |
Dashboard /wp-admin | 9.16 ▲5.86 | 80.03 ▲28.80 |
Posts /wp-admin/edit.php | 9.16 ▲5.80 | 87.51 ▲37.96 |
Add New Post /wp-admin/post-new.php | 11.19 ▲5.30 | 114.26 ▲15.13 |
Media Library /wp-admin/upload.php | 9.16 ▲5.93 | 74.34 ▲37.57 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 9.16 | 64.50 |
Wizard /wp-admin/admin.php?page=wplogger-wizard | 9.16 | 66.44 |
Server storage [IO: ▲8.07MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 318 new files
Database: no new tables, 14 new options
New WordPress options |
---|
wplog_type_children |
fs_active_plugins |
wplog_importance_children |
widget_recent-posts |
can_compress_scripts |
wplogger-session-init |
theysaidso_admin_options |
db_upgraded |
wplogger-first-init |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Logger
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 14.47 ▲0.19 | 1.77 ▲0.02 | 29.98 ▼14.04 |
Dashboard /wp-admin | 2,268 ▲80 | 4.89 ▼1.01 | 109.13 ▼0.09 | 73.38 ▲33.76 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.01 ▲0.02 | 38.76 ▲0.68 | 33.29 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 21.91 ▼1.26 | 733.38 ▲52.87 | 42.41 ▼14.06 |
Media Library /wp-admin/upload.php | 1,462 ▲77 | 4.24 ▼0.05 | 98.54 ▼2.96 | 69.90 ▲24.91 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,140 | 1.72 | 24.39 | 30.26 |
Wizard /wp-admin/admin.php?page=wplogger-wizard | 1,393 | 1.87 | 34.31 | 72.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/lite-wp-logger/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 12 options in the database
- wplog_importance_children
- db_upgraded
- wplog_type_children
- can_compress_scripts
- fs_debug_mode
- fs_accounts
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractSoftware' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Result/Device.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractSoftware' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Result/AbstractVersionedSoftware.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractClient' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Result/AbstractSoftware.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Exception/FetcherException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'UAParser\\Util\\Logfile\\ReaderInterface' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Util/Logfile/AbstractReader.php:14
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Result\\AbstractVersionedSoftware' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Result/OperatingSystem.php:12
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/OperatingSystemParser.php:15
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Exception/ReaderException.php:11
- > PHP Fatal error
Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Parser.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/lite-wp-logger/vendor/ua-parser/uap-php/src/Command/ConvertCommand.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (20 tag instead of maximum 10)
lite-wp-logger/wplogger.php 85% from 13 tests
Analyzing the main PHP file in "WP Logger" version 2.0.0
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 ("lite-wp-logger.php" instead of "wplogger.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin68,341 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 181 | 8,922 | 19,774 | 44,870 |
CSS | 26 | 3,251 | 287 | 19,911 |
JavaScript | 25 | 134 | 511 | 2,886 |
Markdown | 4 | 110 | 0 | 342 |
JSON | 3 | 0 | 0 | 251 |
SVG | 2 | 0 | 0 | 37 |
Bourne Shell | 1 | 11 | 0 | 29 |
XML | 1 | 0 | 0 | 15 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 52.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 97 | |
▷ Abstract classes | 7 | 7.22% |
▷ Concrete classes | 90 | 92.78% |
▷ Final classes | 4 | 4.44% |
Methods | 1,569 | |
▷ Static methods | 261 | 16.63% |
▷ Public methods | 1,119 | 71.32% |
▷ Protected methods | 55 | 3.51% |
▷ Private methods | 395 | 25.18% |
Functions | 107 | |
▷ Named functions | 99 | 92.52% |
▷ Anonymous functions | 8 | 7.48% |
Constants | 156 | |
▷ Global constants | 101 | 64.74% |
▷ Class constants | 55 | 35.26% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/jui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/admin/img/jui/ui-bg_glass_65_ffffff_1x400.png | 0.24KB | 0.09KB | ▼ 64.23% |
assets/admin/img/jui/ui-icons_454545_256x240.png | 6.91KB | 4.18KB | ▼ 39.44% |
assets/admin/img/jui/ui-icons_2e83ff_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |