84% get-the-image

Code Review | Get the Image

WordPress plugin Get the Image scored84%from 54 tests.

About plugin

  • Plugin page: get-the-image
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2009
  • Latest release: Sep 25, 2017
  • Number of updates: 33
  • Update frequency: every 94.8 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

10,000+ active /629,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.17ms] Passed 4 tests

Server-side resources used by Get the Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.25 ▲0.44
Dashboard /wp-admin3.31 ▼0.0443.81 ▼15.01
Posts /wp-admin/edit.php3.36 ▲0.0043.87 ▼4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.08 ▼17.69
Media Library /wp-admin/upload.php3.23 ▲0.0032.62 ▲1.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Get the Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.061.78 ▲0.0338.46 ▼1.21
Dashboard /wp-admin2,203 ▲125.85 ▼0.0597.86 ▼0.6140.51 ▼5.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0134.66 ▼5.6732.84 ▼3.48
Add New Post /wp-admin/post-new.php1,533 ▼023.00 ▼0.20623.27 ▼1.6463.51 ▲10.04
Media Library /wp-admin/upload.php1,388 ▼34.29 ▲0.14102.23 ▲5.7943.82 ▲2.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 no errors were found, 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/get-the-image/get-the-image.php:36

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Slider plus thumbnails.), #2 (Portfolio images.), #3 (Gallery-style thumbnails.)
You can look at the official readme.txt

get-the-image/get-the-image.php 92% from 13 tests

The principal PHP file in "Get the Image" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,009 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown42280602
PHP1220475407

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity126.00
▷ Minimum class complexity126.00
▷ Maximum class complexity126.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected