90% dadevarzan-wp-download

Code Review | Dadevarzan WordPress Download

WordPress plugin Dadevarzan WordPress Download scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-dow...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Feb 6, 2019
  • Latest release: May 31, 2022
  • Number of updates: 10
  • Update frequency: every 121.0 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.84ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Download
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1241.04 ▲4.33
Dashboard /wp-admin3.41 ▲0.1045.85 ▼3.56
Posts /wp-admin/edit.php3.51 ▲0.1549.56 ▲3.00
Add New Post /wp-admin/post-new.php6.09 ▲0.2184.90 ▼11.55
Media Library /wp-admin/upload.php3.32 ▲0.1035.25 ▲0.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Dadevarzan WordPress Download
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.66 ▼1.004.97 ▲3.2439.98 ▼1.05
Dashboard /wp-admin2,240 ▲525.90 ▲1.04107.47 ▲4.2940.08 ▼4.40
Posts /wp-admin/edit.php2,123 ▲312.04 ▲0.0539.34 ▼2.2933.76 ▼2.61
Add New Post /wp-admin/post-new.php1,571 ▲2923.23 ▲5.02660.63 ▲2.2555.79 ▼6.22
Media Library /wp-admin/upload.php1,416 ▲284.18 ▲0.0193.48 ▼19.4039.96 ▼7.18

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: dadehvarzan, dadevarzan, wordpress, wp, download

dadevarzan-wp-download/dadevarzan-wp-download.php Passed 13 tests

The primary PHP file in "Dadevarzan WordPress Download" version 1.1.1 is used by WordPress to initiate all plugin functionality
32 characters long description:
download post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected341 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23618282
PO File1222359

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin