84% master-embed-posts

Code Review | Master Embed Posts

WordPress plugin Master Embed Posts scored84%from 54 tests.

About plugin

  • Plugin page: master-embed-posts
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2023
  • Latest release: Apr 1, 2023
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: datvimaru50 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /999 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: ▼11.63ms] Passed 4 tests

A check of server-side resources used by Master Embed Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.97 ▼1.75
Dashboard /wp-admin3.32 ▼0.0245.01 ▼19.14
Posts /wp-admin/edit.php3.38 ▲0.0245.51 ▼3.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.46 ▼22.61
Media Library /wp-admin/upload.php3.25 ▲0.0134.01 ▼0.83

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Master Embed Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.21 ▼1.171.59 ▼0.2938.46 ▼4.68
Dashboard /wp-admin2,203 ▲185.82 ▲0.0195.57 ▼7.8638.38 ▼3.22
Posts /wp-admin/edit.php2,086 ▼01.98 ▼0.0236.44 ▼0.2930.90 ▼5.45
Add New Post /wp-admin/post-new.php6,354 ▲4,81227.81 ▲9.57892.11 ▲270.9371.11 ▲13.31
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0195.91 ▼9.0842.86 ▼3.89

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/master-embed-posts/master-embed-posts.php:26

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: embed, block editor, block, gutenberg

master-embed-posts/master-embed-posts.php Passed 13 tests

The entry point to "Master Embed Posts" version 0.1.0 is a PHP file that has certain tags in its header comment area
77 characters long description:
The Embed block that help you to embed different posts into the current post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin74 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON10059
PHP221312
CSS2002
JavaScript1001

PHP code Passed 2 tests

Analyzing 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.40
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin