89% modify-attachments-meta

Code Review | Modify Attachments Meta

WordPress plugin Modify Attachments Meta scored89%from 54 tests.

About plugin

  • Plugin page: modify-attachment...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2014
  • Latest release: Aug 15, 2016
  • Number of updates: 9
  • Update frequency: every 105.9 days
  • Top authors: vloo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /6,266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Modify Attachments Meta
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.91 ▼4.86
Dashboard /wp-admin3.32 ▼0.0346.77 ▼9.42
Posts /wp-admin/edit.php3.37 ▲0.0146.41 ▼3.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.55 ▼11.70
Media Library /wp-admin/upload.php3.24 ▲0.0133.49 ▼9.23

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Modify Attachments Meta
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.701.58 ▼0.1037.48 ▼3.17
Dashboard /wp-admin2,206 ▲155.90 ▼0.03110.44 ▲9.0045.72 ▲0.64
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0433.01 ▼9.3534.17 ▼1.55
Add New Post /wp-admin/post-new.php1,519 ▼923.58 ▲5.34659.63 ▲31.8160.58 ▲4.56
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0397.03 ▼22.3340.72 ▼6.33

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

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === modify-attachments-meta === )
The official readme.txt is a good inspiration

modify-attachments-meta/modify-attachments-meta.php 92% from 13 tests

"Modify Attachments Meta" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin85 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2163144
PO File1112641

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin