72% master-accordion

Code Review | Master Accordion - Accordion, FAQ, Tabs, Shortcode & Widgets

WordPress plugin Master Accordion - Accordion, FAQ, Tabs, Shortcode & Widgets scored 72% from 54 tests.

About plugin

  • Plugin page: master-accordion
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 5.8.1
  • First release: Feb 5, 2019
  • Latest release: Feb 8, 2019
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: themecentury (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 11,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.86MB] [CPU: ▼216.03ms] Passed 4 tests

Analyzing server-side resources used by Master Accordion - Accordion, FAQ, Tabs, Shortcode & Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.9343.01 ▲21.51
Dashboard /wp-admin3.92 ▲0.8662.57 ▲12.90
Posts /wp-admin/edit.php3.97 ▲0.8654.44 ▲5.11
Add New Post /wp-admin/post-new.php6.27 ▲0.84105.63 ▼891.70
Media Library /wp-admin/upload.php3.86 ▲0.8639.99 ▲9.57
All Settings /wp-admin/edit.php?post_type=master-accordion&page=master-settings3.7735.97
All Accordions /wp-admin/edit.php?post_type=master-accordion3.9043.12
Accordion Category /wp-admin/edit-tags.php?taxonomy=accordion-category&post_type=master-accordion3.8641.15
Add New /wp-admin/post-new.php?post_type=master-accordion3.9863.81
Shortcode Generator /wp-admin/edit.php?post_type=master-accordion&page=mran-shortcode-generator3.7738.11
All Tabs /wp-admin/edit.php?post_type=master-tabs3.9038.72

Server storage [IO: ▲1.50MB] [DB: ▲0.51MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 5 new options
New WordPress options
widget_mran_accordion_widget
widget_mran_term_tab_widget
widget_mran_term_accordion_widget
widget_mran_tab_widget
widget_mran_accordion_nav_menu

Browser metrics Passed 4 tests

A check of browser resources used by Master Accordion - Accordion, FAQ, Tabs, Shortcode & Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,928 ▲31517.01 ▲1.0114.79 ▲0.5150.49 ▲1.69
Dashboard /wp-admin3,051 ▲1236.60 ▲0.51146.77 ▼50.64109.72 ▼10.69
Posts /wp-admin/edit.php2,850 ▲1113.04 ▲0.3378.93 ▲6.69100.06 ▲7.18
Add New Post /wp-admin/post-new.php1,684 ▲1221.75 ▲2.94318.20 ▼85.24114.63 ▲11.48
Media Library /wp-admin/upload.php1,912 ▲1025.49 ▲0.47150.55 ▼20.82118.43 ▲4.46
All Settings /wp-admin/edit.php?post_type=master-accordion&page=master-settings1,3752.5969.14102.60
All Accordions /wp-admin/edit.php?post_type=master-accordion1,5672.9667.1067.55
Accordion Category /wp-admin/edit-tags.php?taxonomy=accordion-category&post_type=master-accordion1,9402.6364.3981.89
Add New /wp-admin/post-new.php?post_type=master-accordion3,4889.32276.16156.48
Shortcode Generator /wp-admin/edit.php?post_type=master-accordion&page=mran-shortcode-generator12,2164.48261.51105.29
All Tabs /wp-admin/edit.php?post_type=master-tabs1,5952.7374.2083.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 5 options
    • widget_mran_term_accordion_widget
    • widget_mran_accordion_widget
    • widget_mran_tab_widget
    • widget_mran_accordion_nav_menu
    • widget_mran_term_tab_widget

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/master-accordion/includes/posttype/index.php
    • > /wp-content/plugins/master-accordion/includes/widgets/index.php
    • > /wp-content/plugins/master-accordion/includes/shortcodes/index.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/master-accordion/includes/optionpage/class-mran-settings-page.php:241
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/master-accordion/includes/optionpage/class-mran-shortcode-generator.php:377

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=master-accordion&page=master-settings
    • > Network (severe)
    https://ps.w.org/sharing-plus/assets/banner-772x250.png?rev=1717682 - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

master-accordion/master-accordion.php 92% from 13 tests

The main PHP script in "Master Accordion - Accordion, FAQ, Tabs, Shortcode & Widgets" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin11,095 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP307351,0533,329
CSS771873,010
SVG1002,671
JavaScript513911,486
Sass13640599

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.95
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods143
▷ Static methods21.40%
▷ Public methods13695.10%
▷ Protected methods00.00%
▷ Private methods74.90%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/admin/img/themecentury.png6.38KB4.65KB▼ 27.11%