84% featured-image-zoom

Code Review | Featured Image Zoom

WordPress plugin Featured Image Zoom scored 84% from 54 tests.

About plugin

  • Plugin page: featured-image-zoom
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2014
  • Latest release: Nov 4, 2022
  • Number of updates: 62
  • Update frequency: every 51.9 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 25,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Featured Image Zoom
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.26 ▼11.33
Dashboard /wp-admin3.32 ▲0.0243.67 ▼1.84
Posts /wp-admin/edit.php3.37 ▲0.0146.12 ▼0.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.78 ▼7.90
Media Library /wp-admin/upload.php3.25 ▲0.0134.91 ▼2.77

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Image Zoom
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼0.711.64 ▼0.2140.08 ▼4.27
Dashboard /wp-admin2,206 ▲185.90 ▲0.91101.45 ▼8.0439.98 ▼2.31
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0939.81 ▲1.6535.30 ▲0.99
Add New Post /wp-admin/post-new.php1,542 ▼018.33 ▼0.12608.68 ▼31.9655.63 ▲6.05
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0498.66 ▼4.0242.76 ▼0.48

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/featured-image-zoom/featured-image-zoom.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: responsive, thumbnail, featured image, magnify, image...

featured-image-zoom/featured-image-zoom.php Passed 13 tests

"Featured Image Zoom" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
Shortcode [zoom] to display to display the post's zoomable featured image on the page.

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
There were no executable files found in this plugin341 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1414263
PHP2314363
CSS12015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected