84% playbuzz

Code Review | Playbuzz

WordPress plugin Playbuzz scored84%from 54 tests.

About plugin

  • Plugin page: playbuzz
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.5
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Apr 25, 2018
  • Number of updates: 153
  • Update frequency: every 10.2 days
  • Top authors: playbuzz (56.21%)ramiy (44.44%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /103,204 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▼2.90ms] Passed 4 tests

This is a short check of server-side resources used by Playbuzz
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2642.52 ▲0.27
Dashboard /wp-admin3.58 ▲0.2848.31 ▼1.59
Posts /wp-admin/edit.php3.70 ▲0.3553.55 ▼1.42
Add New Post /wp-admin/post-new.php6.19 ▲0.3098.32 ▼8.86
Media Library /wp-admin/upload.php3.51 ▲0.2839.92 ▲2.71
Playbuzz /wp-admin/options-general.php?page=playbuzz3.4836.63
New Playbuzz /wp-admin/post-new.php?pb-story=true6.1995.67

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
playbuzz

Browser metrics Passed 4 tests

A check of browser resources used by Playbuzz
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.74 ▲0.391.95 ▼0.0541.97 ▼1.24
Dashboard /wp-admin2,231 ▲635.66 ▲0.1392.50 ▼0.2440.60 ▼5.80
Posts /wp-admin/edit.php2,149 ▲462.10 ▲0.1040.02 ▼0.3433.80 ▼7.28
Add New Post /wp-admin/post-new.php1,557 ▲3123.37 ▲0.23679.82 ▲47.4136.53 ▼26.09
Media Library /wp-admin/upload.php1,441 ▲414.36 ▲0.0897.16 ▼12.1643.05 ▼4.35
Playbuzz /wp-admin/options-general.php?page=playbuzz1,1981.7729.4034.33
New Playbuzz /wp-admin/post-new.php?pb-story=true1,67317.82912.4233.43

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

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

Smoke tests 75% from 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?pb-story=true
    • > Javascript (severe) in unknown
    /wp-content/plugins/playbuzz/js/story-creator/pb-story-creator-controller.js?ver=1.0.0 77:21 Uncaught TypeError: Cannot read properties of undefined (reading 'local')

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
5 plugin tags: interactive content, creative writing, blog, interactive poll, interactive article

playbuzz/playbuzz.php Passed 13 tests

"Playbuzz" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Embed customized playful content from Playbuzz.com into your WordPress site

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
No dangerous file extensions were detected3,951 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS5180601,280
JavaScript205292891,200
PHP14579396998
PO File1183187473

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity17.33
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.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
15 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/tinymce_playbuzz_blue.png15.57KB0.66KB▼ 95.79%
img/action_edit_grey.png0.81KB0.65KB▼ 19.44%
img/favicon_blue_dark.png24.45KB10.51KB▼ 57.03%
img/search-icon.png1.64KB0.93KB▼ 43.23%
img/action_edit_blue.png0.70KB0.65KB▼ 6.46%