68% snapshotboard

Code Review | SnapShotBoard WordPress Plugin

WordPress plugin SnapShotBoard WordPress Plugin scored 68% from 54 tests.

About plugin

  • Plugin page: snapshotboard
  • Plugin version: 0.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.4
  • WordPress version: 6.3.1
  • First release: Apr 8, 2019
  • Latest release: Nov 25, 2019
  • Number of updates: 21
  • Update frequency: every 11.1 days
  • Top authors: grizzlygmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 630 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by SnapShotBoard WordPress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.38 ▼2.84
Dashboard /wp-admin3.32 ▲0.0146.44 ▼5.18
Posts /wp-admin/edit.php3.37 ▲0.0144.27 ▼2.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.80 ▼27.36
Media Library /wp-admin/upload.php3.24 ▲0.0140.68 ▲8.15

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables
wp_ssb_users
New WordPress options
widget_theysaidso_widget
ssb_db_version
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SnapShotBoard WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.48 ▲0.131.78 ▲0.0745.97 ▲1.88
Dashboard /wp-admin2,219 ▲315.83 ▼0.0493.14 ▼13.0139.73 ▼7.75
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0334.21 ▼2.9135.02 ▲3.86
Add New Post /wp-admin/post-new.php1,555 ▲3618.48 ▼4.43621.22 ▼53.0767.98 ▲13.07
Media Library /wp-admin/upload.php1,401 ▲104.22 ▲0.0394.84 ▼6.6441.72 ▼5.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_ssb_users
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • ssb_db_version
    • widget_recent-posts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/snapshotboard/views/dashboard.php
    • > /wp-content/plugins/snapshotboard/snapshotboard-settings.php
    • > /wp-content/plugins/snapshotboard/snapshotboard-admin.php
    • > /wp-content/plugins/snapshotboard/views/connection.php
    • > /wp-content/plugins/snapshotboard/snapshotboard.php
    • > /wp-content/plugins/snapshotboard/views/config.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/snapshotboard/snapshotboard-widget.php:3

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
3 plugin tags: snapshotboard, socialwall, social wall

snapshotboard/snapshotboard.php Passed 13 tests

"SnapShotBoard WordPress Plugin" version 0.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
SnapShotBoard WordPress Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,175 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS115930759
PHP79874416

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.67
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods2080.00%
▷ Public methods2392.00%
▷ Protected methods28.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin