84% eth-embed-anchor-fm

Code Review | ETH Embed Anchor.fm

WordPress plugin ETH Embed Anchor.fm scored84%from 54 tests.

About plugin

  • Plugin page: eth-embed-anchor-fm
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 19, 2022
  • Latest release: Jul 19, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ethitter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,367 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 gracefully, with no errors

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

Analyzing server-side resources used by ETH Embed Anchor.fm
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.52 ▼0.34
Dashboard /wp-admin3.32 ▲0.0145.63 ▼1.61
Posts /wp-admin/edit.php3.37 ▲0.0145.46 ▼2.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.87 ▼8.43
Media Library /wp-admin/upload.php3.24 ▲0.0133.14 ▲2.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ETH Embed Anchor.fm
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.36 ▼1.071.99 ▲0.1844.91 ▲0.26
Dashboard /wp-admin2,206 ▲184.85 ▼0.04109.33 ▲3.5442.41 ▲0.44
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0639.11 ▲2.9934.91 ▼0.38
Add New Post /wp-admin/post-new.php1,530 ▼323.14 ▼0.29632.56 ▼31.4150.30 ▼6.75
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0096.41 ▼2.2943.36 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'ETH_Embed_Anchor_FM\\Singleton' not found in wp-content/plugins/eth-embed-anchor-fm/inc/class-plugin.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ETH_Embed_Anchor_FM\\add_action() in wp-content/plugins/eth-embed-anchor-fm/eth-embed-anchor-fm.php:43
    • > PHP Fatal error
      Trait 'ETH_Embed_Anchor_FM\\Singleton' not found in wp-content/plugins/eth-embed-anchor-fm/inc/class-block-editor.php on line 13

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: oembed, shortcode, podcast, anchorfm, audio...

eth-embed-anchor-fm/eth-embed-anchor-fm.php 92% from 13 tests

"ETH Embed Anchor.fm" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 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
No dangerous file extensions were detected146 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP536137145
JavaScript1001

PHP code Passed 2 tests

This is a short overview 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.19
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods333.33%
▷ Private methods111.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.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