90% simple-mastodon-verification

Code Review | Simple Mastodon Verification

WordPress plugin Simple Mastodon Verification scored90%from 54 tests.

About plugin

  • Plugin page: simple-mastodon-v...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2022
  • Latest release: Apr 7, 2023
  • Number of updates: 17
  • Update frequency: every 8.2 days
  • Top authors: OpenDNA (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /2,951 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.02MB] [CPU: ▼6.64ms] Passed 4 tests

Server-side resources used by Simple Mastodon Verification
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.85 ▲4.29
Dashboard /wp-admin3.32 ▲0.0247.42 ▼2.64
Posts /wp-admin/edit.php3.37 ▲0.0248.90 ▼1.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.78 ▼22.58
Media Library /wp-admin/upload.php3.25 ▲0.0234.67 ▲0.08

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Mastodon Verification
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.19 ▼1.231.61 ▼0.5239.62 ▼8.26
Dashboard /wp-admin2,212 ▲235.91 ▲0.98100.84 ▼6.3939.25 ▼0.38
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0136.60 ▼3.9135.57 ▲3.33
Add New Post /wp-admin/post-new.php1,517 ▼217.59 ▼5.59678.38 ▼22.8666.67 ▲10.29
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.0396.72 ▼6.5340.33 ▼2.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: verification, mastodon, fediverse

simple-mastodon-verification/simple-mastodon-verification.php Passed 13 tests

The principal PHP file in "Simple Mastodon Verification" v. 1.1.3 is loaded by WordPress automatically on each request
127 characters long description:
Provides a General Settings menu option to define a rel=\"me\" in metatags for the whole site and also individual contributors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected93 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3124054
Markdown129039

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin