77% ssbd-contact-from

Code Review | ssbd contact from

WordPress plugin ssbd contact from scored 77% from 54 tests.

About plugin

  • Plugin page: ssbd-contact-from
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2018
  • Latest release: Dec 15, 2018
  • Number of updates: 2
  • Update frequency: every 182.5 days
  • Top authors: abunawim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.41ms] Passed 4 tests

Server-side resources used by ssbd contact from
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.12 ▼2.00
Dashboard /wp-admin3.37 ▲0.0745.59 ▼6.41
Posts /wp-admin/edit.php3.49 ▲0.1349.12 ▲1.37
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.18 ▼14.29
Media Library /wp-admin/upload.php3.30 ▲0.0734.67 ▼6.92

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

ssbd contact from: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15513.96 ▼0.625.64 ▲3.4843.77 ▲1.00
Dashboard /wp-admin2,207 ▲225.80 ▲0.91107.31 ▼10.3938.78 ▼5.85
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0140.93 ▲6.6935.97 ▲1.43
Add New Post /wp-admin/post-new.php1,518 ▼117.71 ▼5.55658.82 ▲7.3460.25 ▲8.63
Media Library /wp-admin/upload.php1,395 ▲104.21 ▼0.0397.60 ▼1.8444.58 ▲2.97

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ssbd-contact-from/public/partials/ssbd_plugin-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ssbd-contact-from/admin/partials/ssbd_plugin-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ssbd-contact-from === )
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

ssbd-contact-from/ssbd_plugin.php 85% from 13 tests

This is the main PHP file of "ssbd contact from" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("ssbd-contact-from.php" instead of "ssbd_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin249 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12138537217
CSS24826
JavaScript24546

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin