84% media-ally

Code Review | Media Ally

WordPress plugin Media Ally scored84%from 54 tests.

About plugin

  • Plugin page: media-ally
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Dec 2, 2013
  • Number of updates: 6
  • Update frequency: every 122.3 days
  • Top authors: sillybean (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.46ms] Passed 4 tests

Server-side resources used by Media Ally
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.71 ▼0.35
Dashboard /wp-admin3.33 ▲0.0347.70 ▼1.47
Posts /wp-admin/edit.php3.39 ▲0.0345.87 ▼7.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.28 ▼25.24
Media Library /wp-admin/upload.php3.26 ▲0.0334.61 ▼7.60
Accessibility Report /wp-admin/options-general.php?page=media_ally_report3.2333.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Media Ally
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.74 ▲0.1543.32 ▲3.63
Dashboard /wp-admin2,193 ▲135.54 ▼0.1089.21 ▼3.3137.54 ▼3.38
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0133.01 ▼7.4532.49 ▼2.72
Add New Post /wp-admin/post-new.php1,531 ▲323.00 ▲0.23662.71 ▼19.0276.99 ▲22.55
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.1192.66 ▼5.1539.84 ▼4.84
Accessibility Report /wp-admin/options-general.php?page=media_ally_report8082.0324.5123.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 add_filter() in wp-content/plugins/media-ally/media-ally.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: accessibility, alt, media, video, images...

media-ally/media-ally.php Passed 13 tests

"Media Ally" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Provides a report on the accessibility of your media files.

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
Success! There were no dangerous files found in this plugin131 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12624131

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin