90% dadevarzan-wp-course

Code Review | Dadevarzan WordPress Course

WordPress plugin Dadevarzan WordPress Course scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-course
  • Plugin version: 1.1.9
  • 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 3, 2019
  • Latest release: May 31, 2022
  • Number of updates: 9
  • Update frequency: every 134.8 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /864 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.25ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Course
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0840.70 ▲1.35
Dashboard /wp-admin3.37 ▲0.0651.19 ▲4.82
Posts /wp-admin/edit.php3.47 ▲0.1146.03 ▲0.40
Add New Post /wp-admin/post-new.php6.05 ▲0.1782.06 ▼17.77
Media Library /wp-admin/upload.php3.28 ▲0.0636.40 ▲3.01

Server storage [IO: ▲0.11MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Dadevarzan WordPress Course
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.47 ▲0.081.79 ▲0.1843.49 ▲7.05
Dashboard /wp-admin2,237 ▲494.84 ▼1.04103.26 ▲0.0338.99 ▼3.12
Posts /wp-admin/edit.php2,117 ▲282.01 ▼0.0234.87 ▼0.5031.90 ▼4.21
Add New Post /wp-admin/post-new.php1,561 ▲2523.20 ▼0.04626.22 ▼54.2352.40 ▲2.74
Media Library /wp-admin/upload.php1,419 ▲314.19 ▼0.1693.60 ▼6.3242.33 ▼2.06

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
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 a shallow check for browser errors
No browser issues were 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, course, dadevarzan, wp, wordpress

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

"Dadevarzan WordPress Course" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
30 characters long description:
course 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
No dangerous file extensions were detected417 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23618350
PO File1262767

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No 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

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