73% insert-or-embed-articulate-content-into-wordpress

Code Review | Insert or Embed Articulate Content into Wordpress

WordPress plugin Insert or Embed Articulate Content into Wordpress scored73%from 54 tests.

About plugin

  • Plugin page: insert-or-embed-a...
  • Plugin version: 4.3000000021
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2011
  • Latest release: Jul 22, 2023
  • Number of updates: 209
  • Update frequency: every 21.0 days
  • Top authors: beeneeb (100%)

Code review

54 tests

User reviews

105 reviews

Install metrics

3,000+ active /115,569 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲5.53MB] [CPU: ▲23.98ms] 75% from 4 tests

Server-side resources used by Insert or Embed Articulate Content into Wordpress
Please take the time to fix the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.53MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.36 ▲5.8973.64 ▲31.90
Dashboard /wp-admin9.38 ▲6.0785.34 ▲34.32
Posts /wp-admin/edit.php9.38 ▲6.0280.32 ▲28.41
Add New Post /wp-admin/post-new.php10.01 ▲4.13109.43 ▲3.03
Media Library /wp-admin/upload.php9.38 ▲6.1570.83 ▲32.59
How to Use elearningfreak.com /wp-admin/index.php?page=articulate-welcome-screen-about9.3864.88
Insert or Embed Articulate Content into WordPress Trial /wp-admin/admin.php?page=insert-or-embed-articulate-content-into-wordpress9.3868.15
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.3862.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 248 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
fs_debug_mode
widget_theysaidso_widget
widget_recent-comments
db_upgraded
fs_accounts
can_compress_scripts
theysaidso_admin_options
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for Insert or Embed Articulate Content into Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲16113.44 ▼0.868.77 ▲6.7834.59 ▼8.93
Dashboard /wp-admin2,223 ▲435.68 ▲0.0387.81 ▼29.3847.07 ▼1.73
Posts /wp-admin/edit.php2,126 ▲262.01 ▼0.0238.52 ▲3.3937.20 ▼0.08
Add New Post /wp-admin/post-new.php1,529 ▼323.35 ▲0.22683.77 ▲8.1859.76 ▲4.87
Media Library /wp-admin/upload.php1,425 ▲284.26 ▼0.06102.83 ▼15.6448.11 ▼1.49
How to Use elearningfreak.com /wp-admin/index.php?page=articulate-welcome-screen-about1,5029.15186.7797.36
Insert or Embed Articulate Content into WordPress Trial /wp-admin/admin.php?page=insert-or-embed-articulate-content-into-wordpress1,0021.8128.5361.21
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0801.6827.0930.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • fs_debug_mode
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • fs_active_plugins
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_accounts

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
Even though everything seems fine, this is not 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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/quiz.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/functions.php:718
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/gutenberg/gutenberg.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/include/shortcode.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/include/five-star-wp-rate-notice.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/admin-page.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 37 tag instead of maximum 10
The official readme.txt might help

insert-or-embed-articulate-content-into-wordpress/quiz.php 85% from 13 tests

The main PHP file in "Insert or Embed Articulate Content into Wordpress" ver. 4.3000000021 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("insert-or-embed-articulate-content-into-wordpress.php" instead of "quiz.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 286 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected79,917 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP1278,16717,36634,802
JSON30020,228
CSS222,69556314,050
JavaScript131,9212,0729,503
Sass115701,110
Markdown2720222
YAML1002

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity90.04
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,270
▷ Static methods20115.83%
▷ Public methods87969.21%
▷ Protected methods171.34%
▷ Private methods37429.45%
Functions167
▷ Named functions167100.00%
▷ Anonymous functions00.00%
Constants166
▷ Global constants10965.66%
▷ Class constants5734.34%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 compressed PNG files occupy 0.67MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
close_16.png0.54KB0.54KB0.00%
images/welcome-feature-icon-2.png0.77KB0.78KB0.00%
quiz.png0.18KB0.18KB▼ 0.54%
images/welcome-feature-icon-1.png0.75KB0.76KB0.00%
images/welcome-video.png57.42KB61.07KB0.00%