84% adforum-oembed

Code Review | AdForum oEmbed

WordPress plugin AdForum oEmbed scored84%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: 6.3.1
  • 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 /859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by AdForum oEmbed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.96 ▼0.55
Dashboard /wp-admin3.31 ▲0.0148.94 ▼3.60
Posts /wp-admin/edit.php3.36 ▲0.0147.64 ▼4.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.82 ▼8.59
Media Library /wp-admin/upload.php3.23 ▲0.0138.06 ▲0.42

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for AdForum oEmbed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.441.75 ▼0.2741.71 ▼4.92
Dashboard /wp-admin2,203 ▲155.77 ▲0.8997.21 ▼6.5038.27 ▼0.27
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0236.35 ▼6.1734.22 ▼1.90
Add New Post /wp-admin/post-new.php1,514 ▼1917.44 ▼5.78601.85 ▼90.0254.08 ▼15.72
Media Library /wp-admin/upload.php1,391 ▲94.18 ▲0.03100.35 ▼4.3446.16 ▼3.58

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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 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 | A shallow check that no browser errors were triggered
No browser errors were detected

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
1 plugin tags: oembed

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

"AdForum oEmbed" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
27 characters long description:
AdForum Open Embed provider

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1275

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues 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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin