74% wp-rwd-capture

Code Review | WP Responsive Web Design Capture

WordPress plugin WP Responsive Web Design Capture scored 74% from 54 tests.

About plugin

  • Plugin page: wp-rwd-capture
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Mar 6, 2016
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: screenshotweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 845 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.76ms] Passed 4 tests

This is a short check of server-side resources used by WP Responsive Web Design Capture
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.31 ▼31.63
Dashboard /wp-admin2.05 ▼1.266.25 ▼42.07
Posts /wp-admin/edit.php2.05 ▼1.316.86 ▼40.32
Add New Post /wp-admin/post-new.php2.05 ▼3.845.97 ▼89.02
Media Library /wp-admin/upload.php2.05 ▼1.185.01 ▼28.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Responsive Web Design Capture
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3313.29 ▲0.035.12 ▲3.3841.35 ▲0.12
Dashboard /wp-admin2,224 ▲185.80 ▲0.92110.41 ▼0.5146.72 ▲9.40
Posts /wp-admin/edit.php2,107 ▲182.00 ▼0.0140.31 ▲0.2233.26 ▼2.46
Add New Post /wp-admin/post-new.php1,552 ▲1818.32 ▼4.80648.20 ▼27.4756.57 ▲7.07
Media Library /wp-admin/upload.php1,406 ▲154.21 ▼0.08100.31 ▼4.2242.54 ▼2.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-rwd-capture handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 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/wp-rwd-capture/wp-rwd-capture.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tested up to: Version not formatted correctly
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-rwd-capture === )
You can look at the official readme.txt

wp-rwd-capture/wp-rwd-capture.php Passed 13 tests

The main PHP script in "WP Responsive Web Design Capture" version 1.0.2 is automatically included on every request by WordPress
115 characters long description:
Just insert a schortcode for capturing responsive web design pages. Signup for https://screenshot-web.com required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23248150
HTML11029
JavaScript1019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin