94% adforum-oembed

Code Review | AdForum oEmbed

WordPress plugin AdForum oEmbed scored 94% from 54 tests.

About plugin

  • Plugin page: adforum-oembed
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.7
  • WordPress version: 5.9.2
  • First release: Oct 11, 2017
  • Latest release: Oct 11, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: adforum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 526 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by AdForum oEmbed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.08 ▲7.97
Dashboard /wp-admin3.42 ▲0.0132.95 ▼3.50
Posts /wp-admin/edit.php3.65 ▲0.0141.91 ▲2.64
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.15 ▼1,221.01
Media Library /wp-admin/upload.php3.30 ▲0.0130.73 ▲6.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AdForum oEmbed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.92 ▲0.285.63 ▼1.272.92 ▲0.06
Dashboard /wp-admin2,892 ▲346.16 ▲0.00116.88 ▼15.40231.10 ▲65.02
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0062.79 ▼1.69138.08 ▼7.03
Add New Post /wp-admin/post-new.php1,665 ▲3021.07 ▲2.97475.85 ▲40.17176.69 ▲28.08
Media Library /wp-admin/upload.php1,695 ▼35.55 ▲0.03140.02 ▲4.49235.35 ▲50.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just 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_action() in wp-content/plugins/adforum-oembed/adforum-oembed.php:14

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: oembed

adforum-oembed/adforum-oembed.php Passed 13 tests

"AdForum oEmbed" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
27 characters long description:
AdForum Open Embed provider

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1275

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin