84% ava-the-shortcode

Code Review | Ava The Shortcode

WordPress plugin Ava The Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: ava-the-shortcode
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 24, 2017
  • Latest release: Aug 12, 2023
  • Number of updates: 31
  • Update frequency: every 76.3 days
  • Top authors: wilcosky (96.77%)Otto42 (6.45%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 4,776 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: ▼5.24ms] Passed 4 tests

Server-side resources used by Ava The Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.86 ▼4.42
Dashboard /wp-admin3.31 ▲0.0044.13 ▼6.87
Posts /wp-admin/edit.php3.36 ▲0.0048.30 ▲2.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.63 ▼11.91
Media Library /wp-admin/upload.php3.23 ▲0.0037.03 ▲2.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Ava The Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.71 ▼0.671.77 ▼0.1440.88 ▼6.44
Dashboard /wp-admin2,203 ▲125.83 ▲0.97105.76 ▲0.7637.10 ▼2.81
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0040.31 ▲4.9938.93 ▲6.82
Add New Post /wp-admin/post-new.php1,548 ▲2918.25 ▼4.56584.61 ▼73.3364.28 ▲5.70
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.02105.33 ▲4.4945.89 ▲0.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ava-the-shortcode/ava-the-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: user, avatar, ava, shortcodes, shortcode

ava-the-shortcode/ava-the-shortcode.php Passed 13 tests

The entry point to "Ava The Shortcode" version 1.0.2 is a PHP file that has certain tags in its header comment area
116 characters long description:
Ava creates a shortcode which displays the current user's avatar. Or, any user's avatar. That's it? Yeah, that's it.

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

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.17
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%
Functions1
▷ Named functions1100.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