84% meaty-avatars

Code Review | Meaty Avatars

WordPress plugin Meaty Avatars scored84%from 54 tests.

About plugin

  • Plugin page: meaty-avatars
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Dec 13, 2016
  • Number of updates: 6
  • Update frequency: every 111.7 days
  • Top authors: GunGeekATX (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /895 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Meaty Avatars
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0437.94 ▼3.11
Dashboard /wp-admin3.37 ▲0.0345.87 ▼7.96
Posts /wp-admin/edit.php3.42 ▲0.0349.72 ▼1.44
Add New Post /wp-admin/post-new.php5.97 ▲0.0583.16 ▼28.26
Media Library /wp-admin/upload.php3.29 ▲0.0342.08 ▲7.80

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Meaty Avatars
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.23 ▼0.931.87 ▲0.1740.18 ▼2.74
Dashboard /wp-admin2,209 ▲215.88 ▲1.00102.80 ▼15.0268.91 ▲23.10
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0240.58 ▲3.7836.37 ▲3.81
Add New Post /wp-admin/post-new.php1,667 ▲13622.56 ▼0.76652.95 ▲52.4652.56 ▲0.86
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.08104.87 ▲8.6267.91 ▲23.03

Uninstaller [IO: ✅] [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: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/meaty-avatars/includes/class-meaty-avatars.php
    • > /wp-content/plugins/meaty-avatars/meaty-avatars.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: comments, avatars

meaty-avatars/meaty-avatars.php Passed 13 tests

Analyzing the main PHP file in "Meaty Avatars" version 1.1
35 characters long description:
Replace avatars with images of meat

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin173 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36185136
JavaScript1211537

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin