84% tabs-recent-posts-vs-recent-comments

Code Review | Tabs recent posts vs recent comments

WordPress plugin Tabs recent posts vs recent comments scored84%from 54 tests.

About plugin

  • Plugin page: tabs-recent-posts...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2013
  • Latest release: Dec 1, 2022
  • Number of updates: 29
  • Update frequency: every 117.4 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,746 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.15 ▼2.35
Dashboard /wp-admin3.35 ▲0.0044.14 ▼13.64
Posts /wp-admin/edit.php3.40 ▲0.0447.65 ▲1.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.55 ▼21.24
Media Library /wp-admin/upload.php3.27 ▲0.0432.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.88 ▼0.779.13 ▲7.2143.85 ▲4.25
Dashboard /wp-admin2,206 ▲185.79 ▼0.1099.48 ▼3.0736.02 ▼7.24
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0240.72 ▲2.4936.91 ▲2.24
Add New Post /wp-admin/post-new.php1,533 ▼923.15 ▲4.94686.22 ▲68.4752.86 ▲0.08
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0193.38 ▼4.7141.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP23030201
PO File2162261
JavaScript114819
CSS1369
HTML1001

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 code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
inc/ico-hot-orange.png1.75KB0.85KB▼ 51.73%
inc/ico-hot-blue.png1.68KB0.76KB▼ 54.85%
inc/ico-hot-grey.png1.69KB0.75KB▼ 55.66%