Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.38ms] Passed 4 tests
A check of server-side resources used by Tabbed Contents Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.14 ▲1.33 |
Dashboard /wp-admin | 3.37 ▲0.03 | 43.93 ▼18.02 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.99 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.93 ▼8.59 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.43 ▲2.28 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Tabbed Contents Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.29 ▼1.06 | 9.19 ▲6.71 | 39.19 ▼5.78 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▲0.02 | 82.74 ▼6.02 | 36.01 ▲1.52 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.09 | 37.47 ▲2.88 | 31.50 ▼7.30 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,834 | 28.29 ▲5.26 | 851.20 ▲232.01 | 35.15 ▼33.07 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.04 | 100.71 ▼1.73 | 40.85 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant TCB_PLUGIN_VERSION - assumed 'TCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/tabbed-contents/dist/script.asset.php on line 3
- > PHP Warning
Use of undefined constant TCB_PLUGIN_VERSION - assumed 'TCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/tabbed-contents/dist/editor.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'TabContent' not found in wp-content/plugins/tabbed-contents/tab/block.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Tab Contents), #2 (Settings)
- Requires at least: Version format is invalid
tabbed-contents/index.php 85% from 13 tests
The main file in "Tabbed Contents Block" v. 1.0.3 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: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("tabbed-contents.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin355 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 14 | 202 |
JSON | 2 | 0 | 0 | 146 |
CSS | 3 | 1 | 7 | 5 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This is a very shot review 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.31 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin