10% p-accordion

Code Review | Personal accordion

WordPress plugin Personal accordion scored10%from 54 tests.

About plugin

  • Plugin page: p-accordion
  • Plugin version: 1.1.24
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Nov 28, 2017
  • Latest release: Dec 19, 2017
  • Number of updates: 34
  • Update frequency: every 0.8 days
  • Top authors: nitrax974 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/p-accordion/p-accordion.php+77
    Methods with the same name as their class will not be constructors in a future version of PHP; PPaccordion has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼55.29ms] Passed 4 tests

This is a short check of server-side resources used by Personal accordion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.315.15 ▼35.05
Dashboard /wp-admin2.18 ▼1.135.92 ▼46.66
Posts /wp-admin/edit.php2.18 ▼1.187.08 ▼43.72
Add New Post /wp-admin/post-new.php2.18 ▼3.716.00 ▼95.71
Media Library /wp-admin/upload.php2.18 ▼1.055.73 ▼29.84
Personal Accordion /wp-admin/options-general.php?page=p-accordion-options-page2.186.82

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 19 new options
New WordPress options
p_accordion_categorie_simbol
p_accordion_categorie
p_accordion_trans_color
p_accordion_section_panel
p_accordion_section_simbol
p_accordion_categorie_font_size
widget_recent-comments
p_accordion_categorie_color
widget_theysaidso_widget
p_accordion_categorie_panel
...

Browser metrics Passed 4 tests

A check of browser resources used by Personal accordion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.92 ▼0.699.19 ▲7.7040.94 ▲0.87
Dashboard /wp-admin2,215 ▲375.79 ▲0.1492.37 ▼4.1639.14 ▼5.62
Posts /wp-admin/edit.php2,128 ▲252.30 ▲0.2840.64 ▲3.7236.79 ▲6.75
Add New Post /wp-admin/post-new.php1,543 ▲1723.98 ▲0.98615.23 ▼59.0333.24 ▼18.61
Media Library /wp-admin/upload.php1,417 ▲234.38 ▲0.1596.27 ▼0.6641.09 ▲0.55
Personal Accordion /wp-admin/options-general.php?page=p-accordion-options-page1,6693.1965.0228.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/p-accordion/p-accordion.php+77
    Methods with the same name as their class will not be constructors in a future version of PHP; PPaccordion has a deprecated constructor
  • This plugin does not fully uninstall, leaving 19 options in the database
    • p_accordion_time_action
    • p_accordion_section_font_size
    • p_accordion_categorie_color
    • p_accordion_radius
    • widget_theysaidso_widget
    • p_accordion_section_panel
    • p_accordion_section_color
    • p_accordion_trans_color
    • theysaidso_admin_options
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=p-accordion-options-page
    • > Deprecated in wp-content/plugins/p-accordion/p-accordion.php+77
    Methods with the same name as their class will not be constructors in a future version of PHP; PPaccordion has a deprecated constructor

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/p-accordion/p-accordion.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
There were not plugin tags detected

p-accordion/p-accordion.php Passed 13 tests

The primary PHP file in "Personal accordion" version 1.1.24 is used by WordPress to initiate all plugin functionality
64 characters long description:
Plugin per gestire in modo personalizzato le strutture accordion

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin651 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP26044386
PO File23838108
JavaScript218283
CSS17974

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit45.png1.14KB0.85KB▼ 25.24%
images/eye-3-32.png0.61KB0.72KB0.00%
images/edit-9-34.png0.86KB1.06KB0.00%