84% ff-tab-widget

Code Review | FF Tab Widget

WordPress plugin FF Tab Widget scored84%from 54 tests.

About plugin

  • Plugin page: ff-tab-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2013
  • Latest release: Jan 9, 2014
  • Number of updates: 23
  • Update frequency: every 2.6 days
  • Top authors: kharisblank (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /3,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.73ms] Passed 4 tests

This is a short check of server-side resources used by FF Tab Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.98 ▼0.85
Dashboard /wp-admin3.40 ▲0.1043.91 ▼3.46
Posts /wp-admin/edit.php3.51 ▲0.1644.35 ▼1.93
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.36 ▼4.69
Media Library /wp-admin/upload.php3.32 ▲0.0937.51 ▲5.23

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_ff_tab_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by FF Tab Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17914.08 ▼0.295.79 ▲3.9337.44 ▼5.80
Dashboard /wp-admin2,241 ▲505.01 ▲0.13100.34 ▼0.9540.06 ▼1.06
Posts /wp-admin/edit.php2,126 ▲372.32 ▲0.3036.33 ▼0.7231.37 ▼2.34
Add New Post /wp-admin/post-new.php1,550 ▲1418.39 ▼4.92623.54 ▼1.3835.80 ▼13.68
Media Library /wp-admin/upload.php1,426 ▲354.48 ▲0.2797.28 ▲0.1942.22 ▼0.71

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_ff_tab_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ff-tab-widget/includes/color-picker.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ff-tab-widget/includes/color-picker.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ff-tab-widget/includes/color-picker.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Setting), #2 (Tab Widget), #3 (FF Tab Widget Settings)
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

ff-tab-widget/ff-tab-widget.php Passed 13 tests

"FF Tab Widget" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Display popular posts, recent posts, recent commets, and tags in an animated tabs in a single widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin876 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP324078373
JavaScript33312206
LESS2327155
CSS205142

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png12.28KB4.14KB▼ 66.31%
screenshot-1.png10.55KB6.22KB▼ 41.03%
screenshot-2.png30.55KB9.84KB▼ 67.78%