89% free-images

Code Review | Free Assets Library - Openverse/Pixabay 600+ Million Images

WordPress plugin Free Assets Library - Openverse/Pixabay 600+ Million Images scored89%from 54 tests.

About plugin

  • Plugin page: free-images
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2018
  • Latest release: Nov 19, 2023
  • Number of updates: 37
  • Update frequency: every 52.4 days
  • Top authors: Mahesh901122 (78.38%)surror (24.32%)

Code review

54 tests

User reviews

10 reviews

Install metrics

7,000+ active /99,907 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Free Assets Library - Openverse/Pixabay 600+ Million Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4038.18 ▲0.93
Dashboard /wp-admin3.73 ▲0.3851.65 ▼10.26
Posts /wp-admin/edit.php3.77 ▲0.4152.78 ▲3.70
Add New Post /wp-admin/post-new.php6.26 ▲0.3791.32 ▲4.11
Media Library /wp-admin/upload.php3.59 ▲0.3740.21 ▲6.19
Free Assets Library /wp-admin/upload.php?page=fal3.5539.32

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Free Assets Library - Openverse/Pixabay 600+ Million Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21018.45 ▲4.111.56 ▼0.1338.44 ▼4.10
Dashboard /wp-admin2,356 ▲1829.19 ▲3.57228.81 ▲132.8944.92 ▲1.87
Posts /wp-admin/edit.php2,288 ▲1888.03 ▲6.0271.74 ▲37.2931.60 ▼5.02
Add New Post /wp-admin/post-new.php1,607 ▲8121.25 ▼1.91616.56 ▼77.4838.64 ▼19.85
Media Library /wp-admin/upload.php1,581 ▲18110.11 ▲5.92130.76 ▲33.7447.13 ▲5.19
Free Assets Library /wp-admin/upload.php?page=fal1,2678.3694.6433.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: stock images, royalty images, pixabay, images, photos...

free-images/free-images.php 77% from 13 tests

The primary PHP file in "Free Assets Library - Openverse/Pixabay 600+ Million Images" version 2.2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,634 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP223199311,858
CSS4927600
JavaScript53838163
SVG2008
JSON1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.93
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods116
▷ Static methods3832.76%
▷ Public methods10086.21%
▷ Protected methods00.00%
▷ Private methods1613.79%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin