89% gosign-contact-person-box-block

Code Review | Gosign - Contact Person Box Block

WordPress plugin Gosign - Contact Person Box Block scored 89% from 54 tests.

About plugin

  • Plugin page: gosign-contact-pe...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Jul 23, 2019
  • Latest release: May 19, 2022
  • Number of updates: 21
  • Update frequency: every 49.4 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 19,508 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.49ms] Passed 4 tests

Server-side resources used by Gosign - Contact Person Box Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.87 ▼6.54
Dashboard /wp-admin3.32 ▲0.0146.74 ▼1.16
Posts /wp-admin/edit.php3.37 ▲0.0150.30 ▲5.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.42 ▼9.77
Media Library /wp-admin/upload.php3.24 ▲0.0135.43 ▲3.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Gosign - Contact Person Box Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.48 ▼0.141.59 ▼0.6838.42 ▼6.60
Dashboard /wp-admin2,206 ▲184.82 ▼1.06108.09 ▲6.1239.47 ▼4.39
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0141.54 ▲0.8434.44 ▲2.02
Add New Post /wp-admin/post-new.php6,424 ▲4,89623.45 ▲4.97859.15 ▲241.2668.42 ▲16.70
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0894.83 ▼1.4041.45 ▼0.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires php: Version not formatted correctly
  • Screenshots: These screenshots do not have images: #3 (Border Styling.), #4 (Add icon.), #5 (Cutom Color option of background, text and border.)
You can take inspiration from this readme.txt

gosign-contact-person-box-block/plugin.php 92% from 13 tests

"Gosign - Contact Person Box Block" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gosign-contact-person-box-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin8,102 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,972
JavaScript44036856
Sass341137
Markdown136097
PHP295638
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin