90% pipdig-snapcode-widget

Code Review | Snapchat Snapcode Widget

WordPress plugin Snapchat Snapcode Widget scored90%from 54 tests.

About plugin

  • Plugin page: pipdig-snapcode-w...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Nov 15, 2017
  • Number of updates: 29
  • Update frequency: every 28.1 days
  • Top authors: pipdig (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /20,328 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Snapchat Snapcode Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.00 ▼4.63
Dashboard /wp-admin3.31 ▲0.0139.01 ▼6.66
Posts /wp-admin/edit.php3.37 ▲0.0137.23 ▼7.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.04 ▲2.98
Media Library /wp-admin/upload.php3.24 ▲0.0132.66 ▼2.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Snapchat Snapcode Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▲0.071.59 ▼0.1035.97 ▼5.11
Dashboard /wp-admin2,195 ▲185.57 ▼0.0394.21 ▲6.1243.48 ▲0.49
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0339.59 ▲2.3237.52 ▲4.26
Add New Post /wp-admin/post-new.php1,535 ▼318.08 ▼4.92624.80 ▼76.0666.50 ▲12.66
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0198.10 ▼19.1640.59 ▼6.99

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_pipdig_snapcode_widget
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: widget, snapchat widget, snap chat, follow, social...

pipdig-snapcode-widget/pipdig-snapcode-widget.php Passed 13 tests

The main file in "Snapchat Snapcode Widget" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Add your Snapchat Snapcode to your site. Gain more followers!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34528103
JavaScript119538

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin