89% passe-partout

Code Review | Passe-partout, login as a different user

WordPress plugin Passe-partout, login as a different user scored89%from 54 tests.

About plugin

  • Plugin page: passe-partout
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 16
  • Update frequency: every 9.7 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.84ms] Passed 4 tests

This is a short check of server-side resources used by Passe-partout, login as a different user
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.67 ▼5.13
Dashboard /wp-admin3.31 ▼0.0349.14 ▼23.50
Posts /wp-admin/edit.php3.36 ▲0.0152.49 ▼7.94
Add New Post /wp-admin/post-new.php5.89 ▲0.01128.67 ▲11.69
Media Library /wp-admin/upload.php3.23 ▲0.0130.96 ▼6.80

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Passe-partout, login as a different user
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.69 ▲0.431.73 ▼0.1643.83 ▲5.67
Dashboard /wp-admin2,192 ▲185.53 ▼0.0481.56 ▼8.6638.50 ▼4.84
Posts /wp-admin/edit.php2,097 ▼61.95 ▼0.0740.45 ▼1.1233.85 ▼2.61
Add New Post /wp-admin/post-new.php1,525 ▼123.10 ▼0.05709.37 ▲97.8254.29 ▲1.46
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0396.77 ▼6.8641.63 ▼1.38

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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: Invalid URI ("buymeacoffee.com/josem")
You can take inspiration from this readme.txt

passe-partout/passe-partout.php 92% from 13 tests

The principal PHP file in "Passe-partout, login as a different user" v. 0.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221818

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin