Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.92ms] Passed 4 tests
Server-side resources used by Tab My Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 35.65 ▼4.67 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.66 ▼3.29 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.29 ▼3.60 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.81 ▼16.10 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.78 ▼1.27 |
Add New /wp-admin/post-new.php?post_type=tab_my_content | 3.49 | 57.08 |
All Tabs /wp-admin/edit.php?post_type=tab_my_content | 3.38 | 36.62 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Tab My Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.45 ▲0.07 | 1.61 ▼0.04 | 38.75 ▼4.49 |
Dashboard /wp-admin | 2,237 ▲49 | 4.99 ▼0.82 | 111.70 ▲2.80 | 39.22 ▼7.16 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.24 ▲0.22 | 38.65 ▲3.21 | 42.85 ▲9.22 |
Add New Post /wp-admin/post-new.php | 6,309 ▲4,790 | 19.42 ▼3.78 | 886.46 ▲206.43 | 40.09 ▼16.41 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.31 ▲0.09 | 93.01 ▼20.27 | 42.00 ▼3.67 |
Add New /wp-admin/post-new.php?post_type=tab_my_content | 2,446 | 7.87 | 177.93 | 83.18 |
All Tabs /wp-admin/edit.php?post_type=tab_my_content | 1,103 | 2.19 | 35.38 | 37.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tab-my-content/public/partials/tab-my-content-shortcode-tabs.php
- > /wp-content/plugins/tab-my-content/admin/partials/tab-my-content-admin-display.php
- > /wp-content/plugins/tab-my-content/admin/partials/donate-button.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/tab-my-content/public/partials/tab-my-content-shortcode-tabs.php on line 7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/tab-my-content/public/partials/tab-my-content-shortcode-tabs.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/tab-my-content/public/partials/tab-my-content-public-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tab-my-content/admin/partials/sortable.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tab-my-content/admin/partials/admin-header.php:3
- > PHP Notice
Undefined variable: tabs_content in wp-content/plugins/tab-my-content/public/partials/tab-my-content-shortcode-tabs.php on line 7
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/tab-my-content/public/partials/tab-my-content-shortcode-tabs.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: content, tabs, tab
tab-my-content/tab-my-content.php Passed 13 tests
This is the main PHP file of "Tab My Content" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
Tab My Content is an easy way to add tabs inside your content, page or post. A lightweight and easy way to Tab your content.
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
Good job! No executable or dangerous file extensions detected713 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 137 | 551 | 449 |
CSS | 2 | 13 | 21 | 139 |
PO File | 1 | 21 | 26 | 77 |
JavaScript | 2 | 10 | 0 | 48 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
There were not PNG files found in your plugin