90% vadimages-dropdown-posts

Code Review | Vadimages Dropdown Posts

WordPress plugin Vadimages Dropdown Posts scored90%from 54 tests.

About plugin

  • Plugin page: vadimages-dropdow...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 0.2.1-3.9.1
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: May 20, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mihail.shumilov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 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.01MB] [CPU: ▼3.80ms] Passed 4 tests

An overview of server-side resources used by Vadimages Dropdown Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.90 ▼6.02
Dashboard /wp-admin3.31 ▲0.0149.68 ▲0.69
Posts /wp-admin/edit.php3.36 ▲0.0147.60 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.93 ▼9.18
Media Library /wp-admin/upload.php3.23 ▲0.0136.79 ▲3.27

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

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

Browser metrics Passed 4 tests

Vadimages Dropdown Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.511.67 ▼0.4544.22 ▼1.10
Dashboard /wp-admin2,206 ▲185.85 ▲0.82112.80 ▼7.5645.34 ▲1.84
Posts /wp-admin/edit.php2,071 ▼182.01 ▼0.0035.09 ▼2.6634.05 ▲0.29
Add New Post /wp-admin/post-new.php1,520 ▲623.03 ▲5.35661.76 ▼83.3954.99 ▲2.21
Media Library /wp-admin/upload.php1,388 ▲34.31 ▲0.0897.32 ▼7.3944.50 ▲2.35

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 96% from 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
2 plugin tags: posts, dropdown

vadimages-dropdown-posts/vadimages_drowdown_posts.php 92% from 13 tests

The entry point to "Vadimages Dropdown Posts" version 0.2.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vadimages-dropdown-posts.php" instead of "vadimages_drowdown_posts.php")

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
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15741

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin