84% imagemeta

Code Review | ImageMeta

WordPress plugin ImageMeta scored84%from 54 tests.

About plugin

  • Plugin page: imagemeta
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2012
  • Latest release: Nov 23, 2020
  • Number of updates: 41
  • Update frequency: every 74.2 days
  • Top authors: era404 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼2.83ms] Passed 4 tests

This is a short check of server-side resources used by ImageMeta
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.64 ▲2.17
Dashboard /wp-admin3.31 ▼0.0352.74 ▼15.32
Posts /wp-admin/edit.php3.36 ▲0.0150.27 ▲1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.01100.63 ▼0.04
Media Library /wp-admin/upload.php3.24 ▲0.0138.99 ▲4.95
ImageMeta /wp-admin/tools.php?page=imagemeta3.2139.40

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ImageMeta
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.44 ▲0.061.79 ▲0.1944.19 ▲2.88
Dashboard /wp-admin2,210 ▲195.86 ▲0.9699.10 ▼7.0339.77 ▼6.10
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0535.13 ▼2.0238.36 ▼3.35
Add New Post /wp-admin/post-new.php1,536 ▲2223.50 ▲5.90647.73 ▼25.3957.62 ▲7.49
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.0295.88 ▼9.0840.76 ▼4.15
ImageMeta /wp-admin/tools.php?page=imagemeta9322.0139.9968.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imagemeta/imagemeta.php:22

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 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
Please take inspiration from this readme.txt

imagemeta/imagemeta.php Passed 13 tests

The entry point to "ImageMeta" version 1.1.2 is a PHP file that has certain tags in its header comment area
62 characters long description:
The fastest way to manage meta-data for your wordpress images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin985 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP141136483
CSS117364
JavaScript11112138

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions13
▷ Named functions13100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_img/missing.png1.32KB0.23KB▼ 82.37%
_img/delete.png1.15KB0.31KB▼ 72.91%
_img/bulcclub.png2.74KB1.77KB▼ 35.19%
_img/edit.png1.08KB0.29KB▼ 73.67%
_img/okay.png1.02KB0.14KB▼ 86.63%