83% wallwisher-shortcode

Code Review | Padlet Shortcode

WordPress plugin Padlet Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: wallwisher-shortcode
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2012
  • Latest release: Jul 23, 2013
  • Number of updates: 9
  • Update frequency: every 27.2 days
  • Top authors: coffeebite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /11,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Padlet Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.77 ▼2.45
Dashboard /wp-admin3.31 ▲0.0155.15 ▲3.46
Posts /wp-admin/edit.php3.36 ▲0.0048.99 ▲2.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.48 ▼5.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.43 ▲0.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Padlet Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.61 ▼0.971.56 ▼0.3840.46 ▼3.50
Dashboard /wp-admin2,221 ▲215.85 ▼0.04102.42 ▼4.4738.52 ▼2.94
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0439.90 ▲4.3537.19 ▼0.31
Add New Post /wp-admin/post-new.php1,545 ▼022.94 ▼0.16689.20 ▲50.6755.81 ▲0.09
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0195.04 ▼2.9543.52 ▼1.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wallwisher-shortcode/wallwisher.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === wallwisher-shortcode === )
  • Screenshots: These screenshots require images: #1 (Usage of the short code), #2 (Where to get the short code)
You can take inspiration from this readme.txt

wallwisher-shortcode/wallwisher.php 85% from 13 tests

The primary PHP file in "Padlet Shortcode" version 1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wallwisher-shortcode.php" instead of "wallwisher.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)

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
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141118

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
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
There were not PNG files found in your plugin