10% genesis-tabs-extended

Code Review | Genesis Tabs Extended

WordPress plugin Genesis Tabs Extended scored10%from 54 tests.

About plugin

  • Plugin page: genesis-tabs-exte...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.7.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Apr 3, 2015
  • Number of updates: 13
  • Update frequency: every 33.8 days
  • Top authors: jvandemerwe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,485 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_theme_data is deprecated since version 3.4.0! Use wp_get_theme() instead.

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.13ms] Passed 4 tests

Server-side resources used by Genesis Tabs Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.94 ▼7.02
Dashboard /wp-admin3.31 ▲0.0050.85 ▼0.58
Posts /wp-admin/edit.php3.36 ▲0.0048.77 ▼2.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.25 ▲1.91
Media Library /wp-admin/upload.php3.23 ▲0.0038.32 ▲2.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Tabs Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.111.65 ▼0.2639.34 ▼8.86
Dashboard /wp-admin2,206 ▲155.88 ▲0.8293.86 ▼21.7836.37 ▼9.56
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0540.36 ▼2.1135.28 ▼4.09
Add New Post /wp-admin/post-new.php1,542 ▲818.62 ▼4.87632.53 ▼39.0849.84 ▼0.35
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0093.19 ▼12.3539.72 ▼8.95

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/genesis-tabs-extended/plugin.php:18

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === genesis-tabs-extended === )
You can take inspiration from this readme.txt

genesis-tabs-extended/plugin.php 92% from 13 tests

The main PHP file in "Genesis Tabs Extended" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genesis-tabs-extended.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin406 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP111346358
CSS17048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin