Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.84ms] Passed 4 tests
This is a short check of server-side resources used by Stream Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.63 ▼9.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.38 ▼2.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.47 ▲6.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.57 ▲1.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.28 ▲3.53 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Stream Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.29 ▼1.10 | 1.70 ▼0.56 | 41.49 ▼0.02 |
Dashboard /wp-admin | 2,213 ▲34 | 5.83 ▼0.03 | 98.51 ▲0.50 | 38.87 ▼5.32 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.05 ▲0.01 | 39.06 ▼1.45 | 35.06 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,527 ▼10 | 23.29 ▼0.01 | 672.14 ▼97.97 | 53.98 ▲2.28 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.32 ▲0.16 | 95.94 ▼12.51 | 41.89 ▼4.29 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'TimberPost' not found in wp-content/plugins/stream-manager/includes/timber-stream.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: posts
stream-manager/stream-manager.php 92% from 13 tests
The main PHP script in "Stream Manager" version 1.3.4 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,609 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 228 | 600 | 708 |
JavaScript | 2 | 127 | 152 | 523 |
Sass | 1 | 41 | 31 | 233 |
Markdown | 1 | 43 | 0 | 84 |
Twig | 6 | 25 | 18 | 59 |
CSS | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.29 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 11 | 22.45% |
▷ Public methods | 46 | 93.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.12% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
9 PNG files occupy 0.59MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 101.02KB | 27.37KB | ▼ 72.91% |
assets/screenshot-remove.png | 88.42KB | 23.78KB | ▼ 73.11% |
assets/stream_manager-readme_banner.png | 12.64KB | 5.82KB | ▼ 54.00% |
assets/screenshot-2.png | 89.39KB | 23.83KB | ▼ 73.35% |
assets/screenshot-add.png | 101.02KB | 27.37KB | ▼ 72.91% |