90% ajax-dropdowns

Code Review | Ajax Dropdowns

WordPress plugin Ajax Dropdowns scored90%from 54 tests.

About plugin

  • Plugin page: ajax-dropdowns
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Aug 22, 2014
  • Latest release: Dec 7, 2016
  • Number of updates: 13
  • Update frequency: every 64.7 days
  • Top authors: ThemeBoy (69.23%)brianmiyaji (38.46%)

Code review

54 tests

User reviews

14 reviews

Install metrics

600+ active /11,542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.63ms] Passed 4 tests

This is a short check of server-side resources used by Ajax Dropdowns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.16 ▼3.31
Dashboard /wp-admin3.41 ▲0.1050.76 ▼7.43
Posts /wp-admin/edit.php3.52 ▲0.1751.97 ▼0.06
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.68 ▼3.72
Media Library /wp-admin/upload.php3.33 ▲0.1038.73 ▲1.75
Dropdowns /wp-admin/edit.php?post_type=ajax_dropdown3.3740.87
Add New /wp-admin/post-new.php?post_type=ajax_dropdown3.3948.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ajax Dropdowns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.68 ▼0.945.25 ▲3.3441.71 ▼2.46
Dashboard /wp-admin2,245 ▲424.86 ▼0.95109.66 ▼11.9141.82 ▼3.23
Posts /wp-admin/edit.php2,124 ▲241.98 ▼0.0439.92 ▲4.1736.38 ▼0.81
Add New Post /wp-admin/post-new.php1,583 ▲4318.33 ▼4.86601.28 ▼80.6951.87 ▼6.60
Media Library /wp-admin/upload.php1,424 ▲274.24 ▼0.0198.04 ▼21.2541.92 ▼8.31
Dropdowns /wp-admin/edit.php?post_type=ajax_dropdown1,0881.9930.6934.48
Add New /wp-admin/post-new.php?post_type=ajax_dropdown1,6782.7857.0565.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: option, tabs, dropdowns, inline, ajax...

ajax-dropdowns/ajax-dropdowns.php Passed 13 tests

"Ajax Dropdowns" version 0.9.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Display a group of posts that can be switched using dropdowns.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected769 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS31025419
PHP156116299
JavaScript25646
Bourne Shell1003
Markdown1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1368.42%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/images/chosen/chosen-sprite.png0.63KB0.88KB0.00%