78% zoonar-image-search

Code Review | Zoonar Image Search

WordPress plugin Zoonar Image Search scored78%from 54 tests.

About plugin

  • Plugin page: zoonar-image-search
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: Jul 30, 2021
  • Number of updates: 3
  • Update frequency: every 23.7 days
  • Top authors: zoonardev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /391 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
Installer ran successfully

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

This is a short check of server-side resources used by Zoonar Image Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.00 ▼5.67
Dashboard /wp-admin3.33 ▲0.0247.59 ▼7.74
Posts /wp-admin/edit.php3.38 ▲0.0252.03 ▲5.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.15 ▼14.25
Media Library /wp-admin/upload.php3.25 ▲0.0236.45 ▲0.74

Server storage [IO: ▲1.56MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Zoonar Image Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6913.25 ▼0.951.57 ▼0.4241.46 ▼1.93
Dashboard /wp-admin2,233 ▲335.83 ▼0.05106.86 ▼14.2074.79 ▲29.68
Posts /wp-admin/edit.php2,118 ▲152.01 ▲0.0338.96 ▼2.2635.80 ▼0.77
Add New Post /wp-admin/post-new.php1,548 ▲1723.16 ▲0.02764.55 ▲147.5063.16 ▲0.51
Media Library /wp-admin/upload.php1,406 ▲64.24 ▲0.0396.98 ▼11.1770.03 ▲23.05

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/zoonar-image-search/html/show_overview.inc.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/zoonar-image-search/zoonar-image-search.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zoonar-image-search/zoonar-image-search.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/zoonar-image-search/zoonar-image-search.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: royalty free, wordpress pictures, stock photo, images for wordpress, buy photos

zoonar-image-search/zoonar-image-search.php 92% from 13 tests

The main PHP file in "Zoonar Image Search" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32934138
JavaScript10268

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zoonar.png11.78KB7.10KB▼ 39.74%
images/no_image.png9.53KB5.39KB▼ 43.45%
images/zoonar-favicon.png1.27KB0.60KB▼ 52.73%
images/logo.png4.39KB2.24KB▼ 48.94%