Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.22ms] Passed 4 tests
This is a short check of server-side resources used by Tabs recent posts vs recent comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.15 ▼2.35 |
Dashboard /wp-admin | 3.35 ▲0.00 | 44.14 ▼13.64 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.65 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.55 ▼21.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.32 ▼3.66 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
tabs_rpvsrc_recentcomments_title |
tabs_rpvsrc_recentposts_cnt |
widget_recent-comments |
tabs_rpvsrc_recentcomments_lgt |
can_compress_scripts |
tabs_rpvsrc_recentposts_title |
tabs_rpvsrc_recentcomments_cnt |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Tabs recent posts vs recent comments: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.88 ▼0.77 | 9.13 ▲7.21 | 43.85 ▲4.25 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▼0.10 | 99.48 ▼3.07 | 36.02 ▼7.24 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.00 ▼0.02 | 40.72 ▲2.49 | 36.91 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.15 ▲4.94 | 686.22 ▲68.47 | 52.86 ▲0.08 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▼0.01 | 93.38 ▼4.71 | 41.75 ▲2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tabs-recent-posts-vs-recent-comments/tabs-recent-posts-vs-recent-comments.php:49
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: widget, comments, tabs, plugin, posts
tabs-recent-posts-vs-recent-comments/tabs-recent-posts-vs-recent-comments.php 92% from 13 tests
The principal PHP file in "Tabs recent posts vs recent comments" v. 3.0 is loaded by WordPress automatically on each request
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
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
Good job! No executable or dangerous file extensions detected291 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 30 | 201 |
PO File | 2 | 16 | 22 | 61 |
JavaScript | 1 | 14 | 8 | 19 |
CSS | 1 | 3 | 6 | 9 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview 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.13 |
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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to 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-orange.png | 1.75KB | 0.85KB | ▼ 51.73% |
inc/ico-hot-blue.png | 1.68KB | 0.76KB | ▼ 54.85% |
inc/ico-hot-grey.png | 1.69KB | 0.75KB | ▼ 55.66% |