84% wp-screenshot

Code Review | WP Screenshot

WordPress plugin WP Screenshot scored84%from 54 tests.

About plugin

  • Plugin page: wp-screenshot
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7.5
  • WordPress version: 6.3.1
  • First release: Jan 24, 2013
  • Latest release: May 18, 2017
  • Number of updates: 27
  • Update frequency: every 58.3 days
  • Top authors: larsbachmann (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /6,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP Screenshot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.16 ▼8.34
Dashboard /wp-admin3.31 ▲0.0150.66 ▼1.16
Posts /wp-admin/edit.php3.36 ▲0.0052.97 ▲0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.24 ▼11.75
Media Library /wp-admin/upload.php3.23 ▲0.0038.54 ▲0.89

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Screenshot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.241.68 ▼0.3540.23 ▼6.98
Dashboard /wp-admin2,198 ▲245.61 ▼0.0690.43 ▲3.6739.43 ▼2.74
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0840.31 ▲2.3937.96 ▲0.95
Add New Post /wp-admin/post-new.php1,526 ▼223.17 ▲0.15706.12 ▲26.6952.33 ▼2.36
Media Library /wp-admin/upload.php1,400 ▲64.19 ▼0.01110.11 ▲12.1849.89 ▲3.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
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 take a closer look at 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-screenshot/wp-screenshot.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-screenshot === )
You can look at the official readme.txt

wp-screenshot/wp-screenshot.php Passed 13 tests

The main file in "WP Screenshot" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Just insert a simple shortcode to show a screenshot of any website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1189

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin