84% wp-responsive-and-easy-tabs

Code Review | WP Easy Responsive Tabs

WordPress plugin WP Easy Responsive Tabs scored84%from 54 tests.

About plugin

  • Plugin page: wp-responsive-and...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Mar 26, 2016
  • Number of updates: 11
  • Update frequency: every 32.6 days
  • Top authors: NetAttingo Technologies (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,878 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
Installer ran successfully

Server metrics [RAM: ▼0.10MB] [CPU: ▼8.90ms] Passed 4 tests

This is a short check of server-side resources used by WP Easy Responsive Tabs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0035.89 ▼13.27
Dashboard /wp-admin3.34 ▲0.0346.50 ▲2.15
Posts /wp-admin/edit.php3.39 ▼0.4646.61 ▼9.99
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.80 ▼14.50
Media Library /wp-admin/upload.php3.26 ▲0.0334.88 ▲2.95
Tab Category /wp-admin/edit-tags.php?taxonomy=tabslider_cat&post_type=tabs-items3.3539.54
About Us /wp-admin/edit.php?post_type=tabs-items&page=about-us3.2539.53
Easy Tabs /wp-admin/edit.php?post_type=tabs-items3.3036.90
Add New /wp-admin/post-new.php?post_type=tabs-items3.4155.96

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Easy Responsive Tabs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.19 ▼1.181.70 ▼0.0539.76 ▼1.37
Dashboard /wp-admin2,240 ▲525.85 ▲0.93106.41 ▼9.4539.28 ▼3.66
Posts /wp-admin/edit.php2,126 ▲342.04 ▼0.0138.69 ▲0.8934.95 ▲0.94
Add New Post /wp-admin/post-new.php1,568 ▲4818.30 ▼4.78583.05 ▼54.0049.31 ▼10.93
Media Library /wp-admin/upload.php1,428 ▲434.24 ▲0.0697.49 ▲1.7540.47 ▼0.42
Tab Category /wp-admin/edit-tags.php?taxonomy=tabslider_cat&post_type=tabs-items1,3022.1427.0128.09
About Us /wp-admin/edit.php?post_type=tabs-items&page=about-us8352.0324.3728.97
Easy Tabs /wp-admin/edit.php?post_type=tabs-items1,1071.9430.9729.63
Add New /wp-admin/post-new.php?post_type=tabs-items2,3857.62175.4864.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-responsive-and-easy-tabs/pages/about-us.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-responsive-and-easy-tabs/wp-easy-tabs.php:12

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Back end add tab items), #2 (Front end tab look)
The official readme.txt is a good inspiration

wp-responsive-and-easy-tabs/wp-easy-tabs.php 92% from 13 tests

The main PHP script in "WP Easy Responsive Tabs" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-responsive-and-easy-tabs.php" instead of "wp-easy-tabs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected263 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23523138
CSS2384125

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.87KB22.60KB▼ 50.74%
screenshot-2.png24.53KB14.98KB▼ 38.94%