80% developer-firewall

Code Review | دیوار آتش برنامه نویس

WordPress plugin دیوار آتش برنامه نویس scored80%from 54 tests.

About plugin

  • Plugin page: developer-firewall
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 6, 2021
  • Latest release: Sep 1, 2021
  • Number of updates: 7
  • Update frequency: every 3.7 days
  • Top authors: ghasemihesar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 total downloads

Benchmarks

Plugin footprint 65% 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.12MB] [CPU: ▲3.40ms] Passed 4 tests

Server-side resources used by دیوار آتش برنامه نویس
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1252.79 ▲12.24
Dashboard /wp-admin3.42 ▲0.1253.01 ▲2.56
Posts /wp-admin/edit.php3.54 ▲0.1852.36 ▲5.39
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.95 ▲2.43
Media Library /wp-admin/upload.php3.35 ▲0.1241.29 ▲3.21

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_tdf
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for دیوار آتش برنامه نویس
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.28 ▼0.002.44 ▲0.3542.52 ▲3.72
Dashboard /wp-admin2,210 ▲335.56 ▲0.0486.29 ▼3.5141.25 ▼1.14
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0137.57 ▼0.9636.95 ▼0.03
Add New Post /wp-admin/post-new.php1,536 ▲1023.11 ▼0.50669.18 ▼22.5350.79 ▼4.42
Media Library /wp-admin/upload.php1,415 ▲154.18 ▲0.1095.79 ▼14.8448.25 ▲0.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_tdf
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === developer-firewall === )
You can take inspiration from this readme.txt

developer-firewall/developer-firewall.php Passed 13 tests

The principal PHP file in "دیوار آتش برنامه نویس" v. 1.0.1 is loaded by WordPress automatically on each request
82 characters long description:
یک فایروال ساده و سبک اما قدرتمند برای وردپرس

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected874 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16734874

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.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin