90% playbuzz-oembed

Code Review | Playbuzz Embed

WordPress plugin Playbuzz Embed scored90%from 54 tests.

About plugin

  • Plugin page: playbuzz-oembed
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Feb 3, 2018
  • Number of updates: 30
  • Update frequency: every 36.0 days
  • Top authors: ramiy (96.67%)playbuzz (6.67%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼15.27ms] Passed 4 tests

Analyzing server-side resources used by Playbuzz Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.98 ▼10.32
Dashboard /wp-admin3.31 ▼0.0347.25 ▼28.22
Posts /wp-admin/edit.php3.37 ▲0.0152.47 ▼5.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.65 ▼16.55
Media Library /wp-admin/upload.php3.24 ▲0.0138.81 ▲2.41

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Playbuzz Embed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.281.80 ▼0.1841.38 ▼9.56
Dashboard /wp-admin2,192 ▲155.53 ▼0.1284.45 ▼21.2541.94 ▼5.02
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0640.63 ▼5.1339.59 ▲2.68
Add New Post /wp-admin/post-new.php1,535 ▼1023.24 ▲0.05698.70 ▲29.8960.39 ▲5.64
Media Library /wp-admin/upload.php1,400 ▲64.24 ▼0.03104.74 ▼6.9843.73 ▼1.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: oembed, embed, playbuzz, playful content

playbuzz-oembed/playbuzz-oembed.php Passed 13 tests

The main PHP script in "Playbuzz Embed" version 1.5 is automatically included on every request by WordPress
65 characters long description:
Embed playful content from Playbuzz.com into your WordPress site.

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.45MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png438.43KB108.26KB▼ 75.31%
screenshot-1.png19.91KB8.21KB▼ 58.77%