Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.21ms] Passed 4 tests
This is a short check of server-side resources used by MyStem Extra
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.43 ▲4.65 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.57 ▼6.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.83 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 77.63 ▼21.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.20 ▼1.48 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MyStem Extra
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.22 ▼1.21 | 2.03 ▲0.38 | 46.38 ▲6.56 |
Dashboard /wp-admin | 2,211 ▲23 | 5.80 ▼0.10 | 99.75 ▼15.80 | 40.90 ▼6.11 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.01 | 40.25 ▲1.89 | 36.85 ▲4.69 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.68 ▲0.10 | 654.27 ▼2.73 | 58.30 ▲11.58 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.28 ▲0.05 | 99.82 ▼10.49 | 41.52 ▼3.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mystem-extra/shortcodes/shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/grid-without-sidebar-fourth.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/default-without-sidebar.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/default.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/grid-third.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/grid-without-sidebar-third.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/classic.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/classic-without-sidebar.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/single-template/default-without-sidebar.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-extra/category/template/grid.php:10
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Icons), #2 (Shortcodes)
mystem-extra/mystem-extra.php Passed 13 tests
The main file in "MyStem Extra" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Add extra features to the WordPress theme MyStem.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,626 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 207 | 184 | 910 |
CSS | 3 | 68 | 29 | 492 |
JavaScript | 4 | 52 | 23 | 224 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shortcodes/assets/js/icon.png | 1.22KB | 0.61KB | ▼ 50.24% |
screenshot-2.png | 31.82KB | 15.84KB | ▼ 50.23% |
screenshot-1.png | 29.65KB | 13.19KB | ▼ 55.51% |
category/assets/img/no-image-icon.png | 3.48KB | 1.68KB | ▼ 51.70% |
shortcodes/assets/img/icon.png | 1.22KB | 0.61KB | ▼ 50.24% |