90% default-twitter-image

Code Review | Default Twitter Image for Yoast

WordPress plugin Default Twitter Image for Yoast scored90%from 54 tests.

About plugin

  • Plugin page: default-twitter-i...
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 10
  • Update frequency: every 64.5 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Default Twitter Image for Yoast
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.73 ▼3.74
Dashboard /wp-admin3.31 ▲0.0143.85 ▼2.43
Posts /wp-admin/edit.php3.36 ▲0.0143.59 ▼3.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.65 ▼17.14
Media Library /wp-admin/upload.php3.24 ▲0.0135.98 ▲2.53

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

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

Browser metrics Passed 4 tests

Default Twitter Image for Yoast: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.70 ▲0.321.72 ▲0.1044.11 ▲3.03
Dashboard /wp-admin2,198 ▲245.61 ▲0.0583.59 ▼5.2238.63 ▼2.47
Posts /wp-admin/edit.php2,097 ▲152.03 ▲0.0533.84 ▼1.2034.27 ▼7.79
Add New Post /wp-admin/post-new.php1,528 ▲222.90 ▼0.62677.42 ▲20.6553.33 ▼23.62
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0694.24 ▼5.9941.50 ▼6.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: twitter, open graph, seo, yoast

default-twitter-image/default-twitter-image.php Passed 13 tests

The entry point to "Default Twitter Image for Yoast" version 0.1 is a PHP file that has certain tags in its header comment area
111 characters long description:
Provide a default Twitter Image setting for Yoast SEO. An unofficial Yoast add-on made with ♥️ by Whodunit.

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
Success! There were no dangerous files found in this plugin147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2833147

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.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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