90% dadevarzan-wp-facility

Code Review | Dadevarzan WordPress Facility

WordPress plugin Dadevarzan WordPress Facility scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-fac...
  • Plugin version: 1.2.0
  • 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 17, 2019
  • Latest release: May 31, 2022
  • Number of updates: 8
  • Update frequency: every 150.0 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.99ms] Passed 4 tests

Server-side resources used by Dadevarzan WordPress Facility
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.81 ▼3.11
Dashboard /wp-admin3.40 ▲0.0647.35 ▼12.27
Posts /wp-admin/edit.php3.51 ▲0.1552.90 ▼3.03
Add New Post /wp-admin/post-new.php6.09 ▲0.20101.02 ▼1.54
Media Library /wp-admin/upload.php3.32 ▲0.0940.14 ▲1.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dadevarzan WordPress Facility
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.34 ▲0.071.82 ▲0.1642.06 ▲1.30
Dashboard /wp-admin2,229 ▲485.62 ▼0.2490.52 ▼10.1542.14 ▼4.58
Posts /wp-admin/edit.php2,131 ▲311.96 ▲0.0140.46 ▼1.6935.65 ▼0.36
Add New Post /wp-admin/post-new.php1,552 ▲2623.20 ▲0.21627.06 ▼29.6054.76 ▼5.12
Media Library /wp-admin/upload.php1,425 ▲284.25 ▲0.0595.09 ▼2.7342.98 ▲0.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: facility, wordpress, dadevarzan, wp, dadehvarzan

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

The main PHP script in "Dadevarzan WordPress Facility" version 1.2.0 is automatically included on every request by WordPress
32 characters long description:
facility post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin326 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23617276
PO File1182050

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin