Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.32ms] Passed 4 tests
Analyzing server-side resources used by All Your Stack Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.36 ▼0.10 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.73 ▼0.80 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.38 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.42 ▼26.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.35 ▲2.11 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- You have illegally modified 1 file (7.80KB) outside of "wp-content/plugins/all-your-stack-posts/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/template-stackapp.php
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for All Your Stack Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.26 ▼0.09 | 2.14 ▼0.42 | 41.90 ▼9.06 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.00 | 91.55 ▼0.21 | 42.98 ▼2.29 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.02 | 35.30 ▼8.09 | 37.20 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 23.44 ▲5.27 | 708.38 ▲47.26 | 52.93 ▼11.80 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▼0.01 | 113.20 ▲3.96 | 50.54 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'B5F_All_Your_Stack_Posts' not found in wp-content/plugins/all-your-stack-posts/includes/template-stackapp.php:15
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/badge_request.php:7
- > PHP Fatal error
Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: pdf, stackexchange, print, answers, questions
all-your-stack-posts/all-your-stack-posts.php 85% from 13 tests
The main file in "All Your Stack Posts" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,839 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 875 | 2,299 | 2,832 |
JavaScript | 5 | 84 | 152 | 1,629 |
CSS | 4 | 39 | 27 | 378 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 259 | |
▷ Static methods | 31 | 11.97% |
▷ Public methods | 242 | 93.44% |
▷ Protected methods | 2 | 0.77% |
▷ Private methods | 15 | 5.79% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 1 | 2.70% |
▷ Class constants | 36 | 97.30% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sprites.png | 16.98KB | 7.32KB | ▼ 56.89% |
images/rarrow.png | 3.23KB | 0.45KB | ▼ 86.01% |
images/app-icon.png | 18.96KB | 7.47KB | ▼ 60.62% |
images/larrow.png | 3.22KB | 0.46KB | ▼ 85.82% |