83% my-wp-tabs

Code Review | WP Tabs

WordPress plugin WP Tabs scored83%from 54 tests.

About plugin

  • Plugin page: my-wp-tabs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.96ms] Passed 4 tests

A check of server-side resources used by WP Tabs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.97 ▲0.36
Dashboard /wp-admin3.32 ▲0.0145.13 ▼6.15
Posts /wp-admin/edit.php3.37 ▲0.0146.69 ▼3.86
Add New Post /wp-admin/post-new.php5.90 ▲0.01103.01 ▲1.82
Media Library /wp-admin/upload.php3.24 ▲0.0137.79 ▲2.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Tabs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.57 ▼0.579.04 ▲7.1343.55 ▼6.26
Dashboard /wp-admin2,203 ▲186.08 ▲0.1896.17 ▼9.4339.23 ▼4.90
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0239.62 ▼3.1035.94 ▼2.71
Add New Post /wp-admin/post-new.php1,544 ▲918.32 ▼4.85598.53 ▼88.4461.95 ▲3.32
Media Library /wp-admin/upload.php1,382 ▼94.24 ▲0.0496.94 ▼0.5344.17 ▼2.64

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-wp-tabs/tabs-functions.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: No valid plugin tags found
  • Screenshots: Screenshot #1 (WP Tabs in a post.) image required
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

my-wp-tabs/tabs-functions.php 92% from 13 tests

The principal PHP file in "WP Tabs" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-wp-tabs.php" instead of "tabs-functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS170141
PHP1261455
JavaScript16318

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tab-bg@2x.png1.82KB1.32KB▼ 27.18%
images/shortcode_sep@2x.png0.97KB0.09KB▼ 91.18%
images/tab-bg.png1.82KB1.32KB▼ 27.18%
images/shortcode_sep.png0.97KB0.09KB▼ 91.18%