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.32MB] [CPU: ▼14.91ms] Passed 4 tests
Server-side resources used by Xpert Tab
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 29.40 ▼8.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.93 ▼6.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.43 ▲6.30 |
Add New Post /wp-admin/post-new.php | 4.80 ▼1.08 | 61.44 ▼33.29 |
Media Library /wp-admin/upload.php | 3.08 ▼0.14 | 23.14 ▼11.22 |
Server storage [IO: ▲1.49MB] [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: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Xpert Tab
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.19 | 1.62 ▼0.18 | 42.46 ▼1.76 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.02 | 99.00 ▼12.57 | 41.13 ▼1.82 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.02 | 39.36 ▼1.47 | 34.65 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.75 ▲0.01 | 596.68 ▼38.58 | 47.99 ▼1.08 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.09 | 96.76 ▼4.41 | 41.82 ▼3.88 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/xpert-tab/shortcode/tabs.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Tested up to: Invalid version format
xpert-tab/xpert_tabs.php 85% from 13 tests
This is the main PHP file of "Xpert Tab" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("xpert-tab.php" instead of "xpert_tabs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected19,437 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 87 | 1,297 | 1,646 | 6,674 |
CSS | 24 | 0 | 188 | 5,983 |
JavaScript | 11 | 1,051 | 1,596 | 5,026 |
PHP | 4 | 43 | 58 | 824 |
SVG | 1 | 0 | 0 | 565 |
JSON | 2 | 0 | 0 | 338 |
Markdown | 1 | 13 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 1 | 100.00% |
Methods | 12 | |
▷ Static methods | 7 | 58.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin