Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.94ms] Passed 4 tests
Server-side resources used by Tabs popular posts and latest posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.46 ▲3.11 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.70 ▼11.85 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.72 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.20 ▼5.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.26 ▲0.56 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
tplp_popular_title |
tplp_latest_title |
can_compress_scripts |
theysaidso_admin_options |
tplp_latest_posts |
widget_recent-comments |
widget_recent-posts |
tplp_popular_posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tabs popular posts and latest posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.40 ▼0.97 | 8.65 ▲7.13 | 45.47 ▲5.61 |
Dashboard /wp-admin | 2,195 ▲20 | 5.59 ▲0.01 | 95.00 ▼4.04 | 41.36 ▲1.94 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.05 | 38.23 ▲2.87 | 33.67 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.18 ▼4.90 | 598.99 ▼48.26 | 63.79 ▲10.57 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.30 ▲0.07 | 97.65 ▼1.97 | 40.89 ▼2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tabs-widget-popular-posts-and-latest-posts/tabs-popular-posts-and-latest-posts.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: tabber, plugin, widget
tabs-widget-popular-posts-and-latest-posts/tabs-popular-posts-and-latest-posts.php 85% from 13 tests
The primary PHP file in "Tabs popular posts and latest posts" version 3.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tabs-widget-popular-posts-and-latest-posts.php" instead of "tabs-popular-posts-and-latest-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin266 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 28 | 180 |
PO File | 2 | 14 | 18 | 57 |
JavaScript | 1 | 14 | 8 | 19 |
CSS | 1 | 3 | 6 | 9 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/ico-hot-grey.png | 1.69KB | 0.75KB | ▼ 55.66% |
inc/ico-hot-orange.png | 1.75KB | 0.85KB | ▼ 51.73% |
inc/ico-hot-blue.png | 1.68KB | 0.76KB | ▼ 54.85% |