84% jquery-accordion-category-posts

Code Review | jQuery Accordion Category Posts

WordPress plugin jQuery Accordion Category Posts scored84%from 54 tests.

About plugin

  • Plugin page: jquery-accordion-...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2010
  • Latest release: Sep 21, 2021
  • Number of updates: 8
  • Update frequency: every 501.8 days
  • Top authors: hozyali (62.5%)99robots (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /7,098 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.71ms] Passed 4 tests

A check of server-side resources used by jQuery Accordion Category Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.44 ▲1.96
Dashboard /wp-admin3.33 ▲0.0242.51 ▼11.93
Posts /wp-admin/edit.php3.38 ▲0.0240.29 ▼8.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.97 ▼7.94
Media Library /wp-admin/upload.php3.25 ▲0.0233.99 ▲1.63
jQuery Accordion Categories /wp-admin/options-general.php?page=nnr-options3.2127.88

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
nnr_numcat
widget_recent-comments
theysaidso_admin_options
nnr_numpost
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by jQuery Accordion Category Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.90 ▼0.3814.42 ▲12.6637.97 ▼0.07
Dashboard /wp-admin2,202 ▲215.54 ▼0.1687.65 ▼15.9836.06 ▼2.62
Posts /wp-admin/edit.php2,101 ▼21.99 ▼0.0537.06 ▼0.9431.49 ▼3.54
Add New Post /wp-admin/post-new.php1,531 ▲222.91 ▼0.28611.60 ▼3.9856.31 ▼22.05
Media Library /wp-admin/upload.php1,404 ▲14.20 ▲0.0796.14 ▼3.9843.42 ▼0.22
jQuery Accordion Categories /wp-admin/options-general.php?page=nnr-options8042.0023.9424.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jquery-accordion-category-posts/jquery-accordion-category-posts.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === jquery-accordion-category-posts === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

jquery-accordion-category-posts/jquery-accordion-category-posts.php Passed 13 tests

"jQuery Accordion Category Posts" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
A simple post listing by category widget usign jQuery UI Accordion

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
There were no executable files found in this plugin22,606 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript95,3544,18621,822
CSS755148689
PHP1241995

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
27 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jqueryui/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png0.17KB0.08KB▼ 51.12%
jqueryui/themes/base/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
jqueryui/themes/base/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
jqueryui/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%
jqueryui/themes/base/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%