Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.95ms] Passed 4 tests
An overview of server-side resources used by Tabs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.97 ▼5.14 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.14 ▼3.27 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.17 ▲4.05 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.56 ▼4.00 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 32.09 ▲0.62 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_categoryposttab |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Tabs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.82 ▼0.56 | 5.91 ▲4.01 | 37.44 ▼7.00 |
Dashboard /wp-admin | 2,216 ▲34 | 4.89 ▼0.98 | 108.39 ▲3.99 | 40.94 ▼2.32 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.02 ▼0.02 | 39.70 ▲1.13 | 36.73 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.22 ▲5.77 | 650.21 ▼41.57 | 59.44 ▼0.87 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.16 ▼0.11 | 97.38 ▼2.15 | 42.85 ▲0.63 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_categoryposttab
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Add a description for screenshot #19 in category-and-post-tab/assets to your readme.txt
category-and-post-tab/plugin.php 92% from 13 tests
The principal PHP file in "Tabs" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("category-and-post-tab.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,252 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 188 | 342 | 792 |
JavaScript | 2 | 22 | 4 | 238 |
PO File | 1 | 49 | 0 | 114 |
CSS | 2 | 9 | 8 | 108 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ac_bottom.png | 0.28KB | 0.27KB | ▼ 5.54% |
assets/images/right-icon.png | 0.36KB | 0.44KB | 0.00% |
assets/images/view-more.png | 0.36KB | 0.33KB | ▼ 7.14% |
assets/images/no-img.png | 3.66KB | 0.88KB | ▼ 76.05% |
assets/images/view.png | 1.80KB | 1.14KB | ▼ 36.27% |