84% porn-videos-embed

Code Review | Porn Videos Embed

WordPress plugin Porn Videos Embed scored84%from 54 tests.

About plugin

  • Plugin page: porn-videos-embed
  • Plugin version: 0.9.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Mar 17, 2019
  • Number of updates: 17
  • Update frequency: every 19.6 days
  • Top authors: perteus (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /15,354 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Porn Videos Embed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.73 ▼1.93
Dashboard /wp-admin3.31 ▼0.0344.85 ▼12.05
Posts /wp-admin/edit.php3.36 ▲0.0147.27 ▼3.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.90 ▼20.43
Media Library /wp-admin/upload.php3.23 ▲0.0138.06 ▲1.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Porn Videos Embed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.32 ▲0.051.70 ▼0.1244.53 ▲4.40
Dashboard /wp-admin2,195 ▲185.55 ▼0.1180.59 ▼12.7237.38 ▼2.33
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0436.22 ▼1.4035.40 ▲4.22
Add New Post /wp-admin/post-new.php1,526 ▼023.22 ▲0.20660.61 ▼46.8056.90 ▼2.94
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0495.85 ▼5.8645.11 ▲1.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/eporner.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/cliphunter.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/gotporn.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/xvideos.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/xhamster.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/vporn.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/cliphunter.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/drtuber.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/sunporno.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/porn-videos-embed/sites/pervertslut.php:22

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: No valid plugin tags found
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

porn-videos-embed/porn-videos-embed.php Passed 13 tests

This is the main PHP file of "Porn Videos Embed" version 0.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
A very simple wordpress plugin for add shortcode embed videos from porn sites

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 detected316 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP156066238
JavaScript13078

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions17
▷ Named functions17100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icons/icon.png11.47KB6.84KB▼ 40.34%