83% xpert-tab

Code Review | Xpert Tab

WordPress plugin Xpert Tab scored83%from 54 tests.

About plugin

  • Plugin page: xpert-tab
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6+
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Nov 24, 2015
  • Number of updates: 15
  • Update frequency: every 17.7 days
  • Top authors: themexpert (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /13,353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼14.91ms] Passed 4 tests

Server-side resources used by Xpert Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0729.40 ▼8.88
Dashboard /wp-admin3.31 ▲0.0145.93 ▼6.25
Posts /wp-admin/edit.php3.36 ▲0.0147.43 ▲6.30
Add New Post /wp-admin/post-new.php4.80 ▼1.0861.44 ▼33.29
Media Library /wp-admin/upload.php3.08 ▼0.1423.14 ▼11.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Xpert Tab
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.191.62 ▼0.1842.46 ▼1.76
Dashboard /wp-admin2,209 ▲214.86 ▼0.0299.00 ▼12.5741.13 ▼1.82
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0239.36 ▼1.4734.65 ▼3.17
Add New Post /wp-admin/post-new.php1,514 ▼017.75 ▲0.01596.68 ▼38.5847.99 ▼1.08
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0996.76 ▼4.4141.82 ▼3.88

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/xpert-tab/shortcode/tabs.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Tested up to: Invalid version format
You can look at the official readme.txt

xpert-tab/xpert_tabs.php 85% from 13 tests

This is the main PHP file of "Xpert Tab" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("xpert-tab.php" instead of "xpert_tabs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected19,437 lines of code in 130 files:
LanguageFilesBlank linesComment linesLines of code
LESS871,2971,6466,674
CSS2401885,983
JavaScript111,0511,5965,026
PHP44358824
SVG100565
JSON200338
Markdown113027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes1100.00%
Methods12
▷ Static methods758.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin