90% pageflow-embeds

Code Review | Pageflow Embeds

WordPress plugin Pageflow Embeds scored 90% from 54 tests.

About plugin

  • Plugin page: pageflow-embeds
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Dec 16, 2020
  • Number of updates: 2
  • Update frequency: every 13.5 days
  • Top authors: codevise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 331 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.02MB] [CPU: ▼2.45ms] Passed 4 tests

Server-side resources used by Pageflow Embeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.62 ▼11.50
Dashboard /wp-admin3.32 ▲0.0249.68 ▲1.33
Posts /wp-admin/edit.php3.38 ▲0.0346.64 ▲0.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.16 ▼0.11
Media Library /wp-admin/upload.php3.25 ▲0.0339.57 ▲5.01

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pageflow Embeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,070 ▲32424.22 ▲9.4937.20 ▲35.2740.82 ▼4.97
Dashboard /wp-admin2,286 ▲9811.82 ▲5.96130.72 ▲24.3035.59 ▼5.97
Posts /wp-admin/edit.php2,186 ▲9410.43 ▲8.4380.77 ▲40.2434.44 ▼2.96
Add New Post /wp-admin/post-new.php6,423 ▲4,89823.53 ▲0.40732.97 ▲77.2238.82 ▼11.43
Media Library /wp-admin/upload.php1,476 ▲8810.92 ▲6.74138.37 ▲38.3341.90 ▼2.71

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: embed, iframe, pageflow

pageflow-embeds/plugin.php 92% from 13 tests

The principal PHP file in "Pageflow Embeds" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pageflow-embeds.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin343 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS488140
PHP2135782
Sass318166
JavaScript391055

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin