84% screenshot-machine-shortcode

Code Review | JSM Screenshot Machine Shortcode

WordPress plugin JSM Screenshot Machine Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: screenshot-machin...
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: May 31, 2013
  • Latest release: Aug 29, 2023
  • Number of updates: 501
  • Update frequency: every 7.5 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /6,771 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.01MB] [CPU: ▼8.35ms] Passed 4 tests

A check of server-side resources used by JSM Screenshot Machine Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.61 ▼2.11
Dashboard /wp-admin3.32 ▼0.0244.88 ▼14.77
Posts /wp-admin/edit.php3.37 ▲0.0244.37 ▼2.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.83 ▼13.83
Media Library /wp-admin/upload.php3.25 ▲0.0233.83 ▼0.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for JSM Screenshot Machine Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.194.69 ▲2.8940.93 ▼2.76
Dashboard /wp-admin2,209 ▲215.86 ▼0.0497.95 ▼23.1838.53 ▼9.98
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0537.66 ▼0.6431.36 ▼2.91
Add New Post /wp-admin/post-new.php1,533 ▼023.13 ▼0.02633.00 ▼18.2060.85 ▲12.19
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.0499.59 ▲0.7341.82 ▲0.16

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/screenshot-machine-shortcode/screenshot-machine-shortcode.php

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

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
3 plugin tags: shortcode, machine, screenshot

screenshot-machine-shortcode/screenshot-machine-shortcode.php Passed 13 tests

"JSM Screenshot Machine Shortcode" version 2.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Shortcode for Screenshot Machine Images

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
No dangerous file extensions were detected174 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1422896
Markdown121053
JavaScript216025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin