Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.48ms] Passed 4 tests
This is a short check of server-side resources used by LS WP Logger
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.18 ▼3.79 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.57 ▼23.43 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.95 ▼0.69 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.51 ▼14.02 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.36 ▲0.94 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
ls_wp_logger |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
LS WP Logger: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.28 ▼0.29 | 1.66 ▼0.05 | 37.08 ▼7.32 |
Dashboard /wp-admin | 2,240 ▲63 | 5.57 ▼0.08 | 82.68 ▼4.08 | 82.30 ▲42.92 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 2.01 ▼0.02 | 36.07 ▲0.34 | 33.12 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,578 ▲61 | 18.19 ▼0.87 | 686.94 ▲245.77 | 52.74 ▲1.36 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.21 ▼0.01 | 101.20 ▼2.15 | 72.81 ▲31.01 |
Uninstaller [IO: ▲0.35MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attentionThe plugin did not uninstall successfully, leaving 1 table in the database Zombie WordPress options were found after uninstall: 7 options
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/ls-wp-logger/uninstall.php+5
require(wp-content/plugins/ls-wp-logger/LS_WP_Logger.php): failed to open stream: No such file or directory
- Incomplete uninstall procedure, leaving 12 files (0.35MB) in the plugin directory
- (new file) index.php
- (new file) ls-wp-logger.php
- (new file) images/icon-256x256.png
- (new file) Log.php
- (new file) images/banner-772x250.png
- (new file) ls-wp-logger-page.php
- (new file) images/menu-icon.svg
- (new file) README.md
- (new file) js/main.js
- (new file) css/style.css
- ...
- ls_wp_logger
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ls-wp-logger/ls-wp-logger-page.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ls-wp-logger/ls-wp-logger.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 uses markdown syntax to describe your plugin to the world
3 plugin tags: data logs, logs, log
ls-wp-logger/ls-wp-logger.php Passed 13 tests
The main PHP script in "LS WP Logger" version 2.0.0 is automatically included on every request by WordPress
44 characters long description:
This plugin stores logs for your application
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
Good job! No executable or dangerous file extensions detected244 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 22 | 10 | 126 |
JavaScript | 1 | 12 | 0 | 68 |
CSS | 1 | 2 | 0 | 17 |
Markdown | 1 | 6 | 0 | 17 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.34MB with 0.21MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 8.87KB | 3.57KB | ▼ 59.75% |
images/banner-772x250.png | 339.18KB | 126.55KB | ▼ 62.69% |