78% free-images-pictures

Code Review | Free images pictures

WordPress plugin Free images pictures scored 78% from 54 tests.

About plugin

  • Plugin page: free-images-pictures
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Jun 9, 2015
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: adamsbk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,590 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.23ms] Passed 4 tests

Server-side resources used by Free images pictures
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.72 ▲0.16
Dashboard /wp-admin3.36 ▲0.0546.88 ▲1.62
Posts /wp-admin/edit.php3.47 ▲0.1147.06 ▲4.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.72 ▼4.09
Media Library /wp-admin/upload.php3.28 ▲0.0533.94 ▲1.40
Free Images Pictures /wp-admin/options-general.php?page=my-setting-admin3.2227.80

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Free images pictures
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10614.40 ▼0.261.82 ▲0.1443.23 ▲0.23
Dashboard /wp-admin2,244 ▲565.81 ▲0.0098.97 ▲0.6741.08 ▲2.27
Posts /wp-admin/edit.php2,135 ▲462.06 ▲0.0235.18 ▲2.3932.46 ▲0.91
Add New Post /wp-admin/post-new.php1,556 ▲2223.48 ▲0.17669.54 ▼104.4651.71 ▼10.33
Media Library /wp-admin/upload.php1,437 ▲524.24 ▲0.0895.94 ▼4.6141.84 ▼2.57
Free Images Pictures /wp-admin/options-general.php?page=my-setting-admin8592.1126.5730.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=my-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=my-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 is_admin() in wp-content/plugins/free-images-pictures/free-images-pictures.php:123

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === free-images-pictures === )
You can take inspiration from this readme.txt

free-images-pictures/free-images-pictures.php Passed 13 tests

"Free images pictures" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Free images from various sources by freeimages.pictures

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin295 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25261205
JavaScript118790

PHP code Passed 2 tests

Analyzing 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.15
Average class complexity5.50
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
dist/logo.png3.09KB0.50KB▼ 83.77%