Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.02ms] Passed 4 tests
Server-side resources used by WP Log Viewer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.78 ▼30.20 |
Dashboard /wp-admin | 3.44 ▲0.14 | 45.59 ▼5.47 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 49.23 ▲1.23 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 97.51 ▲7.76 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.07 ▲2.38 |
Log Viewer /wp-admin/tools.php?page=wp-log-viewer | 3.33 | 29.93 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Log Viewer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 14.94 ▲0.57 | 1.61 ▼0.93 | 28.57 ▼26.77 |
Dashboard /wp-admin | 2,302 ▲111 | 6.63 ▲1.77 | 135.83 ▲21.20 | 47.58 ▲2.32 |
Posts /wp-admin/edit.php | 2,144 ▲58 | 3.17 ▲1.16 | 55.81 ▲18.92 | 41.85 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.88 ▲0.77 | 618.29 ▼62.78 | 33.95 ▼28.01 |
Media Library /wp-admin/upload.php | 1,437 ▲46 | 5.73 ▲1.57 | 111.48 ▲16.33 | 44.53 ▼0.65 |
Log Viewer /wp-admin/tools.php?page=wp-log-viewer | 1,262 | 3.31 | 51.51 | 46.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (65 tag instead of maximum 10)
wp-log-viewer/wp-log-viewer.php 92% from 13 tests
The main PHP file in "WP Log Viewer" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,590 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 458 | 953 | 937 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 1 | 0 | 0 | 9 |
CSS | 1 | 0 | 3 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 15 | 16.30% |
▷ Public methods | 84 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.70% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin