84% poster-live

Code Review | Poster Live

WordPress plugin Poster Live scored84%from 54 tests.

About plugin

  • Plugin page: poster-live
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Nov 18, 2021
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: moshilini90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Poster Live
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0137.99 ▼10.09
Dashboard /wp-admin3.35 ▲0.0149.36 ▼2.91
Posts /wp-admin/edit.php3.40 ▲0.0151.03 ▼7.38
Add New Post /wp-admin/post-new.php5.93 ▲0.0188.69 ▼10.59
Media Library /wp-admin/upload.php3.28 ▲0.0137.45 ▲0.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Poster Live
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.39 ▼1.058.12 ▲6.2538.54 ▼4.26
Dashboard /wp-admin2,192 ▲155.54 ▼0.0384.35 ▼11.1139.27 ▼1.41
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0139.51 ▼0.0934.60 ▼8.19
Add New Post /wp-admin/post-new.php1,526 ▼223.32 ▲0.23651.20 ▼25.5457.63 ▲3.93
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0394.84 ▼17.9243.04 ▼3.78

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

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/poster-live/templates/posts.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/poster-live/templates/tabs.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: poster live, posts by category, post categories, ajax live, posts...

poster-live/main.php 85% from 13 tests

"Poster Live" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.7" instead of "5.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("poster-live.php" instead of "main.php")

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 detected178 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1110102
PHP3131566
JavaScript11010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions2
▷ Named functions2100.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 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/user.png1.49KB1.26KB▼ 15.59%
images/time.png9.69KB10.33KB0.00%