90% dadevarzan-wp-project

Code Review | Dadevarzan WordPress Project

WordPress plugin Dadevarzan WordPress Project scored 90% from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-pro...
  • Plugin version: 1.2.4
  • 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 23, 2019
  • Latest release: May 31, 2022
  • Number of updates: 10
  • Update frequency: every 119.5 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.19MB] [CPU: ▼2.88ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Project
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2039.72 ▼3.67
Dashboard /wp-admin3.48 ▲0.1744.27 ▼2.61
Posts /wp-admin/edit.php3.58 ▲0.2346.82 ▼2.61
Add New Post /wp-admin/post-new.php6.23 ▲0.34104.33 ▼2.63
Media Library /wp-admin/upload.php3.39 ▲0.1735.99 ▲6.14
Project Locations /wp-admin/edit-tags.php?taxonomy=project_location&post_type=project3.3934.60
Project Status /wp-admin/edit-tags.php?taxonomy=project_status&post_type=project3.3941.79
Project Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project3.3934.46

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dadevarzan WordPress Project
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲13213.25 ▼1.371.84 ▼0.1844.29 ▼3.58
Dashboard /wp-admin2,242 ▲544.87 ▼1.01109.53 ▼5.6043.91 ▼2.75
Posts /wp-admin/edit.php2,128 ▲392.00 ▼0.0139.83 ▲2.0836.97 ▲2.04
Add New Post /wp-admin/post-new.php1,565 ▲5123.27 ▲5.58656.27 ▲46.6954.62 ▼5.87
Media Library /wp-admin/upload.php1,421 ▲364.24 ▲0.0498.76 ▼6.5741.61 ▼0.88
Project Locations /wp-admin/edit-tags.php?taxonomy=project_location&post_type=project1,3012.1426.3828.05
Project Status /wp-admin/edit-tags.php?taxonomy=project_status&post_type=project1,2982.1427.2527.47
Project Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project1,2982.1326.7329.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • 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)
Even though everything seems fine, this is not 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 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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: dadevarzan, wordpress, dadehvarzan, project, wp

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

The primary PHP file in "Dadevarzan WordPress Project" version 1.2.4 is used by WordPress to initiate all plugin functionality
31 characters long description:
project post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin742 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP210817641
PO File1414396
JavaScript1305

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods872.73%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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