Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼324.56ms] Passed 4 tests
Server-side resources used by StackTack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 59.78 ▼10.50 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.57 ▼0.38 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 41.21 ▲5.97 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.07 | 96.52 ▼1,293.34 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 36.21 ▲10.32 |
StackTack /wp-admin/options-general.php?page=stacktack-options | 3.30 | 29.58 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for StackTack
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,040 ▲318 | 16.22 ▲0.64 | 9.29 ▲2.84 | 2.87 ▼0.02 |
Dashboard /wp-admin | 3,020 ▲167 | 6.16 ▲0.06 | 121.38 ▼4.50 | 181.41 ▼53.42 |
Posts /wp-admin/edit.php | 2,816 ▲131 | 3.24 ▲0.01 | 67.51 ▼8.18 | 147.85 ▼8.72 |
Add New Post /wp-admin/post-new.php | 1,747 ▲81 | 21.30 ▲0.45 | 521.07 ▲71.06 | 201.21 ▼0.40 |
Media Library /wp-admin/upload.php | 1,827 ▲133 | 5.56 ▲0.01 | 160.52 ▼20.24 | 213.22 ▲1.92 |
StackTack /wp-admin/options-general.php?page=stacktack-options | 1,246 | 2.44 | 56.99 | 123.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stacktack/stacktack.php:162
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/stacktack/stacktack_options.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (StackTack icon in the editing toolbar.), #2 (An instance of StackTack in a post.)
stacktack/stacktack.php Passed 13 tests
"StackTack" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
A WordPress plugin that makes it easy to embed questions from Stack Exchange sites in your blog.
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 detected346 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 54 | 188 |
JavaScript | 4 | 66 | 66 | 124 |
CSS | 2 | 12 | 14 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 3.72KB | 2.56KB | ▼ 31.12% |
screenshot-2.png | 25.85KB | 13.46KB | ▼ 47.94% |
img/icon.png | 1.38KB | 1.33KB | ▼ 3.12% |
tinymce/button.png | 0.68KB | 0.61KB | ▼ 9.94% |