89% tabs-accordion-responsive

Code Review | Tabs Accordion Responsive

WordPress plugin Tabs Accordion Responsive scored 89% from 54 tests.

About plugin

  • Plugin page: tabs-accordion-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9
  • WordPress version: 5.9.2
  • First release: Apr 6, 2017
  • Latest release: Nov 19, 2017
  • Number of updates: 9
  • Update frequency: every 25.2 days
  • Top authors: PluginlySpeaking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,087 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1,154.92ms] Passed 4 tests

An overview of server-side resources used by Tabs Accordion Responsive
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1358.57 ▲4.89
Dashboard /wp-admin3.55 ▲0.1432.46 ▼0.36
Posts /wp-admin/edit.php3.77 ▲0.1244.72 ▲3.58
Add New Post /wp-admin/post-new.php7.01 ▲0.0499.76 ▼4,623.16
Media Library /wp-admin/upload.php3.42 ▲0.1325.93 ▲0.25
Add New /wp-admin/post-new.php?post_type=pstar_type3.7846.39
Tabs Accordion /wp-admin/edit.php?post_type=pstar_type3.5632.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Tabs Accordion Responsive
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲8916.28 ▲0.546.20 ▼0.102.77 ▲0.07
Dashboard /wp-admin2,934 ▲776.13 ▼0.02129.50 ▼45.28186.91 ▲23.11
Posts /wp-admin/edit.php2,734 ▲463.28 ▲0.0568.57 ▲3.79146.45 ▼4.18
Add New Post /wp-admin/post-new.php1,702 ▲4119.54 ▲2.78388.05 ▼63.66219.73 ▲56.63
Media Library /wp-admin/upload.php1,749 ▲555.59 ▲0.06140.21 ▲0.68265.27 ▲77.51
Add New /wp-admin/post-new.php?post_type=pstar_type4,71412.73283.41242.23
Tabs Accordion /wp-admin/edit.php?post_type=pstar_type1,6725.1192.80109.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 50% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-accordion-responsive/tabs-accordion-responsive.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=pstar_type
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=pstar_type:505:42)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2:2:30340)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=pstar_type
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.9.2 1:31702 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: accordion, tabs, tab, responsive, shortcode

tabs-accordion-responsive/tabs-accordion-responsive.php Passed 13 tests

The principal PHP file in "Tabs Accordion Responsive" v. 1.0 is loaded by WordPress automatically on each request
80 characters long description:
Build your tabs, select a pre-built layout and display it thanks to a shortcode.

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
Everything looks great! No dangerous files found in this plugin2,411 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS3114481,707
PHP19516676
JavaScript2101328

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
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
5 PNG files occupy 0.48MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/tabs_layout/layout_12.PNG161.83KB45.03KB▼ 72.17%
img/tabs_layout/layout_11.PNG161.82KB44.51KB▼ 72.50%
img/tabs_delete.png0.41KB0.31KB▼ 23.75%
img/tabs_layout/layout_16.PNG169.77KB48.32KB▼ 71.54%
img/filling_space.png0.26KB0.13KB▼ 51.70%