90% exmage-wp-image-links

Code Review | EXMAGE - WordPress Image Links

WordPress plugin EXMAGE - WordPress Image Links scored90%from 54 tests.

About plugin

  • Plugin page: exmage-wp-image-l...
  • Plugin version: 1.0.16
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 28
  • Update frequency: every 22.8 days
  • Top authors: kimvt1991 (78.57%)thanhtd (14.29%)villatheme (14.29%)

Code review

54 tests

User reviews

23 reviews

Install metrics

9,000+ active /64,617 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
Install script ran successfully

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

A check of server-side resources used by EXMAGE - WordPress Image Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.65 ▼0.14
Dashboard /wp-admin3.45 ▲0.1551.67 ▲4.75
Posts /wp-admin/edit.php3.50 ▲0.1447.47 ▼0.10
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.37 ▼5.74
Media Library /wp-admin/upload.php3.31 ▲0.0841.57 ▲7.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
exmage-wp-image-links_start_use
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 EXMAGE - WordPress Image Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.20 ▼1.094.95 ▲3.0542.84 ▲2.08
Dashboard /wp-admin2,226 ▲525.88 ▲0.04112.30 ▲2.8544.90 ▲3.26
Posts /wp-admin/edit.php2,109 ▲172.06 ▲0.0136.15 ▼4.8634.08 ▼2.66
Add New Post /wp-admin/post-new.php1,539 ▲617.43 ▼5.87665.27 ▲68.7450.86 ▼3.00
Media Library /wp-admin/upload.php1,454 ▲634.23 ▲0.04107.80 ▲3.8846.45 ▲2.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • exmage-wp-image-links_start_use

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
10 plugin tags: wordpress gallery with links, woocommerce product image external url, elementor image carousel link, wordpress gallery link, woocommerce...

exmage-wp-image-links/exmage-wp-image-links.php Passed 13 tests

"EXMAGE - WordPress Image Links" version 1.0.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Save storage by using external image URLs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,698 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP83156202,186
CSS2554291
JavaScript2518221

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity46.86
▷ Minimum class complexity4.00
▷ Maximum class complexity130.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes342.86%
▷ Concrete classes457.14%
▷ Final classes00.00%
Methods101
▷ Static methods98.91%
▷ Public methods6968.32%
▷ Protected methods2322.77%
▷ Private methods98.91%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants12
▷ Global constants12100.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