83% pasazh

Code Review | Pasazh

WordPress plugin Pasazh scored83%from 54 tests.

About plugin

  • Plugin page: pasazh
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-5.9.3
  • WordPress version: 6.3.1
  • First release: May 7, 2022
  • Latest release: Apr 10, 2023
  • Number of updates: 23
  • Update frequency: every 14.7 days
  • Top authors: aliparsa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼21.98ms] Passed 4 tests

A check of server-side resources used by Pasazh
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.27 ▲0.84
Dashboard /wp-admin3.38 ▲0.0349.22 ▼15.70
Posts /wp-admin/edit.php3.49 ▲0.1346.98 ▼7.10
Add New Post /wp-admin/post-new.php3.24 ▼2.6540.79 ▼65.95
Media Library /wp-admin/upload.php3.30 ▲0.0738.07 ▲1.58

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Pasazh: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.171.95 ▲0.3342.26 ▲1.76
Dashboard /wp-admin2,198 ▲215.57 ▼0.0988.34 ▲1.6939.34 ▼2.26
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0133.26 ▼10.2534.28 ▼1.44
Add New Post /wp-admin/post-new.php1,535 ▲717.99 ▼5.16608.20 ▼31.8866.93 ▲13.22
Media Library /wp-admin/upload.php1,394 ▼34.17 ▼0.0297.99 ▼11.8545.31 ▼6.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pasazh/pasazh.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

pasazh/pasazh.php 77% from 13 tests

"Pasazh" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 348 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin485 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2160180485

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods53
▷ Static methods11.89%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected