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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲0.64ms] Passed 4 tests
An overview of server-side resources used by StagTools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.04 ▼2.20 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.80 ▲0.27 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.81 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 102.52 ▲3.92 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.44 ▲2.88 |
StagTools /wp-admin/options-general.php?page=stagtools | 3.37 | 30.66 |
Server storage [IO: ▲4.74MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
widget_stag-twitter |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_stag-instagram |
widget_recent-comments |
widget_stag-flickr |
widget_stag-dribbble |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for StagTools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 15.96 ▲1.37 | 12.34 ▲10.19 | 48.02 ▲3.69 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼0.01 | 100.32 ▼16.65 | 39.28 ▼5.33 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▲0.03 | 36.44 ▼0.29 | 33.37 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.64 ▲0.41 | 648.14 ▼18.90 | 36.01 ▼15.02 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.25 ▲0.06 | 95.05 ▼2.27 | 42.65 ▲1.55 |
StagTools /wp-admin/options-general.php?page=stagtools | 987 | 2.08 | 25.17 | 27.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- theysaidso_admin_options
- widget_stag-instagram
- widget_stag-twitter
- widget_stag-flickr
- widget_theysaidso_widget
- widget_recent-comments
- widget_stag-dribbble
- widget_recent-posts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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 items
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ST_Widget' not found in wp-content/plugins/stagtools/includes/widgets/widget-twitter.php:9
- > PHP Fatal error
Uncaught Error: Class 'ST_Widget' not found in wp-content/plugins/stagtools/includes/widgets/widget-instagram.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stagtools/includes/settings/settings.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stagtools/shortcodes/stag-shortcodes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/stagtools/includes/post-type/testimonials.php:4
- > PHP Fatal error
Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/stagtools/assets/js/plugin-lang.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/stagtools/shortcodes/shortcodes.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/stagtools/includes/post-type/team.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stagtools/includes/widgets/stagtools-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/stagtools/shortcodes/config.php:11
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
stagtools/stagtools.php 92% from 13 tests
The entry point to "StagTools" version 2.3.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected40,081 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 1 | 0 | 0 | 21,783 |
SVG | 4 | 0 | 1 | 9,564 |
CSS | 4 | 1,602 | 19 | 3,903 |
PHP | 25 | 782 | 1,473 | 3,872 |
JavaScript | 9 | 104 | 128 | 490 |
Sass | 2 | 60 | 4 | 462 |
Markdown | 1 | 5 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.27 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 20 | 14.60% |
▷ Public methods | 118 | 86.13% |
▷ Protected methods | 18 | 13.14% |
▷ Private methods | 1 | 0.73% |
Functions | 61 | |
▷ Named functions | 60 | 98.36% |
▷ Anonymous functions | 1 | 1.64% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/sprite-popup.png | 0.78KB | 1.11KB | 0.00% |