90% dadevarzan-wp-tender

Code Review | Dadevarzan WordPress Tender

WordPress plugin Dadevarzan WordPress Tender scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-tender
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.1.0
  • WordPress version: 6.3.1
  • First release: Feb 27, 2019
  • Latest release: Jan 30, 2023
  • Number of updates: 16
  • Update frequency: every 89.6 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,334 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.15MB] [CPU: ▼7.42ms] Passed 4 tests

A check of server-side resources used by Dadevarzan WordPress Tender
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.12 ▼4.82
Dashboard /wp-admin3.44 ▲0.1447.25 ▼3.17
Posts /wp-admin/edit.php3.55 ▲0.1946.86 ▼8.78
Add New Post /wp-admin/post-new.php6.13 ▲0.2488.30 ▼12.89
Media Library /wp-admin/upload.php3.36 ▲0.1336.36 ▲1.50

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dadevarzan WordPress Tender
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.65 ▼0.661.56 ▼0.7639.94 ▼6.05
Dashboard /wp-admin2,240 ▲525.90 ▲0.09101.63 ▼2.6441.07 ▼0.30
Posts /wp-admin/edit.php2,117 ▲282.02 ▲0.0335.58 ▼7.0733.61 ▼2.48
Add New Post /wp-admin/post-new.php1,570 ▲5618.24 ▲0.57611.41 ▼90.1657.19 ▼3.99
Media Library /wp-admin/upload.php1,419 ▲314.24 ▲0.01101.21 ▼5.9046.15 ▲1.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output 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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wp, wordpress, dadehvarzan, tender cpt, tender post type...

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

Analyzing the main PHP file in "Dadevarzan WordPress Tender" version 1.2.7
30 characters long description:
tender post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected724 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23817610
PO File14955114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin