Benchmarks
Plugin footprint 83% from 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.03MB] [CPU: ▼1.91ms] Passed 4 tests
A check of server-side resources used by StackTack
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.27 ▼3.48 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.46 ▼3.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.85 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.33 ▲5.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.78 ▲0.69 |
StackTack /wp-admin/options-general.php?page=stacktack-options | 3.23 | 31.03 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for StackTack
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲235 | 13.62 ▼0.69 | 5.28 ▲3.47 | 40.08 ▼5.30 |
Dashboard /wp-admin | 2,296 ▲108 | 5.89 ▼0.01 | 107.61 ▲9.38 | 43.47 ▼4.20 |
Posts /wp-admin/edit.php | 2,185 ▲96 | 2.06 ▲0.01 | 41.25 ▲4.35 | 35.41 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,606 ▲73 | 22.96 ▼0.09 | 598.82 ▼97.66 | 61.62 ▲10.85 |
Media Library /wp-admin/upload.php | 1,481 ▲93 | 4.21 ▼0.07 | 99.69 ▲5.24 | 41.48 ▼1.44 |
StackTack /wp-admin/options-general.php?page=stacktack-options | 958 | 2.07 | 25.88 | 25.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (StackTack icon in the editing toolbar.), #2 (An instance of StackTack in a post.)
stacktack/stacktack.php Passed 13 tests
This is the main PHP file of "StackTack" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | There should be no dangerous file extensions present in 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
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 |
img/icon.png | 1.38KB | 1.33KB | ▼ 3.12% |
screenshot-1.png | 3.72KB | 2.56KB | ▼ 31.12% |
tinymce/button.png | 0.68KB | 0.61KB | ▼ 9.94% |
screenshot-2.png | 25.85KB | 13.46KB | ▼ 47.94% |