78% anywhere-flash-embed

Code Review | Anywhere Flash Embed

WordPress plugin Anywhere Flash Embed scored 78% from 54 tests.

About plugin

  • Plugin page: anywhere-flash-embed
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.8.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2014
  • Latest release: Sep 9, 2017
  • Number of updates: 16
  • Update frequency: every 74.6 days
  • Top authors: sureshHARDIYA (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 18,719 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.58ms] Passed 4 tests

Server-side resources used by Anywhere Flash Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.44 ▼10.57
Dashboard /wp-admin3.32 ▲0.0145.44 ▼7.04
Posts /wp-admin/edit.php3.37 ▲0.0151.13 ▼8.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.59 ▼17.51
Media Library /wp-admin/upload.php3.24 ▲0.0139.61 ▼9.94
Anywhere Flash Embed /wp-admin/options-general.php?page=afe_help_page3.2330.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Anywhere Flash Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4413.61 ▼1.044.40 ▲2.3543.70 ▼1.74
Dashboard /wp-admin2,213 ▲285.91 ▲1.05108.30 ▼45.2841.52 ▼12.76
Posts /wp-admin/edit.php2,093 ▼12.04 ▲0.0240.06 ▼8.6536.14 ▼11.21
Add New Post /wp-admin/post-new.php1,519 ▲10817.71 ▲0.04675.36 ▼51.9254.49 ▼0.07
Media Library /wp-admin/upload.php1,395 ▲104.25 ▲0.11114.66 ▼26.6140.95 ▼19.39
Anywhere Flash Embed /wp-admin/options-general.php?page=afe_help_page8622.0623.4127.21

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

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

Smoke tests 50% 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 0% from 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/anywhere-flash-embed/help-general.php
    • > /wp-content/plugins/anywhere-flash-embed/anywhere-flash-embed.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/anywhere-flash-embed/lib/init.php:11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Shortcode Generator Sceen)
The official readme.txt is a good inspiration

anywhere-flash-embed/anywhere-flash-embed.php 92% from 13 tests

This is the main PHP file of "Anywhere Flash Embed" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected294 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33368155
JavaScript11812125
CSS14014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/flash.png1.72KB0.75KB▼ 56.51%
shortcode_generator.png44.83KB14.37KB▼ 67.94%