WordPress plugin Accordion scored 89% from 54 tests.

About plugin

  • Plugin page: category-and-post...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: May 22, 2016
  • Latest release: Feb 11, 2018
  • Number of updates: 29
  • Update frequency: every 21.8 days
  • Top authors: ikhodal (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 8,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.18ms] Passed 4 tests

Server-side resources used by Accordion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.35 ▲1.11
Dashboard /wp-admin3.39 ▲0.0846.15 ▼1.53
Posts /wp-admin/edit.php3.50 ▲0.1444.90 ▼4.47
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.13 ▼8.71
Media Library /wp-admin/upload.php3.31 ▲0.0835.34 ▼1.99

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_postaccordionpanel
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Accordion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19013.54 ▼0.825.40 ▲3.6743.77 ▲2.80
Dashboard /wp-admin2,216 ▲284.86 ▼1.0498.47 ▼13.0841.05 ▼3.67
Posts /wp-admin/edit.php2,096 ▲102.01 ▼0.0535.16 ▼5.3136.13 ▲1.60
Add New Post /wp-admin/post-new.php1,526 ▲722.87 ▼0.49636.07 ▲3.9963.89 ▲10.75
Media Library /wp-admin/upload.php1,395 ▲104.21 ▼0.0295.59 ▼7.3942.78 ▼1.10

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
Please fix the following attributes: You can take inspiration from this readme.txt

category-and-post-accordion-panel/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Accordion" version 2.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("category-and-post-accordion-panel.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,187 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12182342776
JavaScript2162171
CSS2912126
PO File1490114

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.33
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/no-img.png3.66KB0.88KB▼ 76.05%
assets/images/ac_open.png0.30KB0.19KB▼ 35.41%
assets/images/searchicon.png0.80KB0.82KB0.00%
assets/images/cart.png0.48KB0.47KB▼ 1.84%
assets/images/ac_close.png0.27KB0.17KB▼ 34.80%