89% scootercontact

Code Review | Scooter Contact

WordPress plugin Scooter Contact scored89%from 54 tests.

About plugin

  • Plugin page: scootercontact
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 23, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 43
  • Update frequency: every 24.7 days
  • Top authors: gothamdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,258 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.07MB] [CPU: ▼2.49ms] Passed 4 tests

This is a short check of server-side resources used by Scooter Contact
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.93 ▼0.84
Dashboard /wp-admin3.38 ▲0.0846.16 ▼3.25
Posts /wp-admin/edit.php3.43 ▲0.0748.84 ▲1.07
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.34 ▼6.93
Media Library /wp-admin/upload.php3.30 ▲0.0737.56 ▲3.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Scooter Contact
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.29 ▼1.021.64 ▼0.7139.80 ▼14.23
Dashboard /wp-admin2,225 ▲334.90 ▲0.01108.67 ▼0.7942.58 ▲0.57
Posts /wp-admin/edit.php2,111 ▲252.07 ▲0.0740.93 ▲5.1535.40 ▲1.39
Add New Post /wp-admin/post-new.php6,365 ▲4,83227.64 ▲4.32837.28 ▲218.0366.56 ▲12.20
Media Library /wp-admin/upload.php1,410 ▲254.22 ▼0.0596.82 ▼4.1240.12 ▼2.63

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === Scooter Contact === )
The official readme.txt is a good inspiration

scootercontact/scooter2talk.php 85% from 13 tests

The entry point to "Scooter Contact" version 1.6.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scootercontact.php" instead of "scooter2talk.php")

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
Success! There were no dangerous files found in this plugin437 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP210326405
JavaScript25031
CSS1001

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.16
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin