84% tagplay-widget

Code Review | Tagplay Widget

WordPress plugin Tagplay Widget scored84%from 54 tests.

About plugin

  • Plugin page: tagplay-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Jul 14, 2017
  • Number of updates: 10
  • Update frequency: every 70.2 days
  • Top authors: Tagplay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.21ms] Passed 4 tests

A check of server-side resources used by Tagplay Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.42 ▲2.98
Dashboard /wp-admin3.37 ▲0.0645.51 ▼4.82
Posts /wp-admin/edit.php3.42 ▲0.0647.46 ▼1.59
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.73 ▼11.39
Media Library /wp-admin/upload.php3.29 ▲0.0634.68 ▲0.97

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_tagplay_widget
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tagplay Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.60 ▼0.781.86 ▼0.2844.68 ▼2.54
Dashboard /wp-admin2,203 ▲245.83 ▼0.0395.70 ▼13.1939.37 ▼6.51
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0035.60 ▼2.7231.33 ▼0.14
Add New Post /wp-admin/post-new.php1,533 ▲523.40 ▲0.28678.95 ▼21.6952.48 ▼1.04
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0794.42 ▼13.0842.15 ▼2.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_tagplay_widget
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tagplay-widget/tagplay-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 ( === tagplay-widget === )
You can look at the official readme.txt

tagplay-widget/tagplay-widget.php Passed 13 tests

"Tagplay Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
Provides Tagplay widget functionality to show social media posts managed by Tagplay (https://tagplay.co).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin261 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13843261

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods440.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin