89% tabs-pills

Code Review | Tabs & Pills

WordPress plugin Tabs & Pills scored89%from 54 tests.

About plugin

  • Plugin page: tabs-pills
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2021
  • Latest release: May 28, 2023
  • Number of updates: 22
  • Update frequency: every 39.3 days
  • Top authors: codelizarplugs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,025 total downloads

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.15MB] [CPU: ▼4.93ms] Passed 4 tests

Analyzing server-side resources used by Tabs & Pills
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.66 ▼3.14
Dashboard /wp-admin3.49 ▲0.1946.95 ▼3.40
Posts /wp-admin/edit.php3.60 ▲0.2547.80 ▲0.60
Add New Post /wp-admin/post-new.php6.07 ▲0.1988.31 ▼13.78
Media Library /wp-admin/upload.php3.41 ▲0.1840.57 ▲7.94
Upgrade To Pro /wp-admin/admin.php?page=accbox_upgpro3.3831.30
Add Tabs & Pills /wp-admin/post-new.php?post_type=cdlzr_tabs_box3.5552.98
All Tabs & Pills /wp-admin/admin.php?page=cdlzr_tabspills_box3.3728.30

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Tabs & Pills
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.65 ▼0.738.07 ▲6.3344.03 ▼7.38
Dashboard /wp-admin2,250 ▲615.87 ▲0.90111.10 ▼9.8471.62 ▲24.56
Posts /wp-admin/edit.php2,129 ▲582.00 ▼0.0243.41 ▲6.3738.03 ▲1.04
Add New Post /wp-admin/post-new.php1,704 ▲16222.87 ▲4.72655.40 ▼4.8157.87 ▼12.32
Media Library /wp-admin/upload.php1,432 ▲474.13 ▼0.11116.42 ▲9.3548.22 ▲4.85
Upgrade To Pro /wp-admin/admin.php?page=accbox_upgpro9502.0124.0764.43
Add Tabs & Pills /wp-admin/post-new.php?post_type=cdlzr_tabs_box3,6328.29206.84186.41
All Tabs & Pills /wp-admin/admin.php?page=cdlzr_tabspills_box1,7852.7637.3835.83

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output 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)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (22 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #1, #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in tabs-pills/assets to your readme.txt
You can look at the official readme.txt

tabs-pills/tabs-pills.php 85% from 13 tests

Analyzing the main PHP file in "Tabs & Pills" version 1.6
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Keep the plugin description shorter than 140 characters (currently 215 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected11,116 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,445
PHP14174781,361
CSS64141208
JavaScript63358102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity89.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods35
▷ Static methods2674.29%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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.32MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo/tabsboxmenu.png0.73KB0.49KB▼ 33.20%
admin/assets/images/tabspills.PNG123.64KB37.04KB▼ 70.04%
admin/assets/images/style4.PNG39.30KB15.78KB▼ 59.86%
admin/assets/images/style3.PNG43.19KB20.40KB▼ 52.78%
admin/assets/images/style2.PNG47.41KB23.66KB▼ 50.09%