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.02MB] [CPU: ▼2.29ms] Passed 4 tests
Analyzing server-side resources used by PHP Console Log
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.19 ▲0.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.32 ▲1.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.78 ▲6.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.80 ▼9.27 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.83 ▼1.70 |
PHP Console Log Help /wp-admin/admin.php?page=php-console-log-help | 3.21 | 31.14 |
Server storage [IO: ▲2.11MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PHP Console Log
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲161 | 13.58 ▼0.71 | 9.25 ▲7.61 | 41.77 ▼1.99 |
Dashboard /wp-admin | 2,210 ▲22 | 5.87 ▲0.98 | 106.07 ▼0.61 | 41.37 ▼1.06 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 34.95 ▲0.50 | 31.79 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.19 ▲0.01 | 612.86 ▼60.05 | 57.77 ▲5.49 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.19 ▼0.00 | 100.52 ▼6.89 | 42.92 ▼3.44 |
PHP Console Log Help /wp-admin/admin.php?page=php-console-log-help | 1,113 | 2.06 | 24.02 | 30.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
php-console-log/php-console-log.php Passed 13 tests
"PHP Console Log" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Log PHP variables and arrays to the web console in your browser via JavaScript's console.log(). No browser extensions required.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin424 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 65 | 198 | 301 |
JavaScript | 1 | 37 | 56 | 49 |
CSS | 1 | 9 | 0 | 44 |
SVG | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 2.05MB with 1.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 774.06KB | 295.93KB | ▼ 61.77% |
assets/screenshot-1.png | 46.48KB | 18.22KB | ▼ 60.79% |
assets/banner-1544x500-rtl.png | 774.06KB | 295.93KB | ▼ 61.77% |
assets/icon-256x256.png | 4.55KB | 1.52KB | ▼ 66.52% |
assets/banner-772x250.png | 248.58KB | 84.10KB | ▼ 66.17% |