84% cloudup-oembed

Code Review | Cloudup oEmbed

WordPress plugin Cloudup oEmbed scored84%from 54 tests.

About plugin

  • Plugin page: cloudup-oembed
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2013
  • Latest release: Nov 27, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Hanni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,616 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: ▼6.78ms] Passed 4 tests

A check of server-side resources used by Cloudup oEmbed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.03 ▼11.64
Dashboard /wp-admin3.31 ▲0.0144.45 ▼10.83
Posts /wp-admin/edit.php3.36 ▲0.0145.70 ▼1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.42 ▼3.31
Media Library /wp-admin/upload.php3.23 ▲0.0137.10 ▲1.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cloudup oEmbed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.141.75 ▼0.2343.85 ▲0.01
Dashboard /wp-admin2,209 ▲214.85 ▼0.03110.21 ▼3.8942.68 ▲0.19
Posts /wp-admin/edit.php2,089 ▼01.97 ▲0.0040.44 ▲3.2334.63 ▲2.25
Add New Post /wp-admin/post-new.php1,521 ▼1623.39 ▲0.19674.71 ▼8.8856.34 ▲0.69
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0294.03 ▼13.9341.46 ▼3.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following
  • 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/cloudup-oembed/cloudup-oembed.php:14

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)
There were no browser issues found

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
3 plugin tags: screenshots, oembed, cloudup

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

The main PHP file in "Cloudup oEmbed" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
Add Cloudup oEmbeds.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1495

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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
There are no PNG files in this plugin