83% stream-pandamolesto-shortcode

Code Review | Stream PandaMolesto Shortcode

WordPress plugin Stream PandaMolesto Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: stream-pandamoles...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9
  • WordPress version: 6.3.1
  • First release: Apr 5, 2013
  • Latest release: Apr 18, 2014
  • Number of updates: 5
  • Update frequency: every 75.6 days
  • Top authors: PandaMolesto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /918 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
This plugin's installer ran successfully

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

A check of server-side resources used by Stream PandaMolesto Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.22 ▲1.60
Dashboard /wp-admin3.31 ▼0.0343.66 ▼15.78
Posts /wp-admin/edit.php3.37 ▲0.0144.68 ▼5.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.19 ▼35.39
Media Library /wp-admin/upload.php3.24 ▲0.0133.59 ▼0.84

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Stream PandaMolesto Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼0.711.69 ▼0.1742.65 ▼0.32
Dashboard /wp-admin2,206 ▲184.86 ▲0.02100.45 ▼7.5341.56 ▼2.50
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0040.19 ▼3.0834.78 ▼3.61
Add New Post /wp-admin/post-new.php1,533 ▲423.39 ▲0.11616.41 ▼19.8870.99 ▲2.13
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0299.16 ▼1.6542.21 ▼3.03

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/stream-pandamolesto-shortcode/streamcodes.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Example off a video shortcode.) image not found
You can look at the official readme.txt

stream-pandamolesto-shortcode/streamcodes.php 85% from 13 tests

The primary PHP file in "Stream PandaMolesto Shortcode" version 0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("stream-pandamolesto-shortcode.php" instead of "streamcodes.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 373 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin61 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1233034
JavaScript11317
XML10010

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) tinymce/button-stream.png0.83KB0.00KB▼ 100.00%