84% wp-quick-image

Code Review | WP Quick Image

WordPress plugin WP Quick Image scored84%from 54 tests.

About plugin

  • Plugin page: wp-quick-image
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2014
  • Latest release: Apr 22, 2019
  • Number of updates: 18
  • Update frequency: every 90.4 days
  • Top authors: magicroundabout (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.34ms] Passed 4 tests

Server-side resources used by WP Quick Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1048.99 ▲5.19
Dashboard /wp-admin3.53 ▲0.1959.18 ▲4.20
Posts /wp-admin/edit.php3.59 ▲0.1953.52 ▲1.16
Add New Post /wp-admin/post-new.php6.05 ▲0.1287.87 ▼8.27
Media Library /wp-admin/upload.php3.37 ▲0.1038.30 ▲1.54
WP Quick Image /wp-admin/options-general.php?page=wp_quick_image3.3842.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Quick Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲33615.12 ▲0.865.73 ▲4.0545.59 ▲5.98
Dashboard /wp-admin2,423 ▲2466.19 ▲0.54119.48 ▼7.6244.39 ▼9.32
Posts /wp-admin/edit.php2,271 ▲1713.41 ▲1.3844.25 ▲6.5129.08 ▼3.64
Add New Post /wp-admin/post-new.php1,533 ▲723.51 ▲0.54665.35 ▼25.5537.37 ▼16.22
Media Library /wp-admin/upload.php1,402 ▲24.11 ▼0.0978.78 ▼27.1547.53 ▲1.55
WP Quick Image /wp-admin/options-general.php?page=wp_quick_image1,1642.9845.2931.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-quick-image/admin/partials/wp-quick-image-admin-display.php
    • > /wp-content/plugins/wp-quick-image/public/partials/wp-quick-image-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: dashboard, widgets, images

wp-quick-image/wp-quick-image.php Passed 13 tests

The principal PHP file in "WP Quick Image" v. 0.3 is loaded by WordPress automatically on each request
87 characters long description:
This plugin adds a WordPress Dashboard widget that allows you to quickly post an image.

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 detected503 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12171618418
JavaScript2116269
CSS20816

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
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
There were not PNG files found in your plugin