84% unlimited-photos

Code Review | Unlimited Photos - Stock photo and AI image search

WordPress plugin Unlimited Photos - Stock photo and AI image search scored84%from 54 tests.

About plugin

  • Plugin page: unlimited-photos
  • Plugin version: 1.5.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Jul 24, 2023
  • Number of updates: 31
  • Update frequency: every 13.2 days
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Unlimited Photos - Stock photo and AI image search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.25 ▼4.24
Dashboard /wp-admin3.32 ▲0.0142.84 ▼4.50
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▼0.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.14 ▼5.71
Media Library /wp-admin/upload.php3.24 ▲0.0137.39 ▲2.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Unlimited Photos - Stock photo and AI image search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.445.39 ▲3.6141.77 ▼0.18
Dashboard /wp-admin2,206 ▲184.85 ▼0.02105.75 ▼8.5543.67 ▼2.12
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.1739.26 ▲5.1436.52 ▲2.32
Add New Post /wp-admin/post-new.php6,354 ▲4,82127.87 ▲4.56942.55 ▲316.5562.35 ▲13.68
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0196.09 ▼0.8739.66 ▼0.74

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-photos/unlimited-photos.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
9 plugin tags: stock photos, ai, photography, block, news...

unlimited-photos/unlimited-photos.php Passed 13 tests

The main PHP file in "Unlimited Photos - Stock photo and AI image search" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
Search millions of photos, AI-generated imagry, textures, wallpapers, and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,323 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript24100751,853
CSS261192
JavaScript4310135
JSON500116
PHP221415
Markdown16012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin