84% ajar-productions-in5-embed

Code Review | Ajar in5 Embed

WordPress plugin Ajar in5 Embed scored84%from 54 tests.

About plugin

  • Plugin page: ajar-productions-...
  • Plugin version: 3.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Aug 14, 2023
  • Number of updates: 29
  • Update frequency: every 80.0 days
  • Top authors: justinputney (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /8,326 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.20ms] Passed 4 tests

An overview of server-side resources used by Ajar in5 Embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.92 ▼3.96
Dashboard /wp-admin3.41 ▲0.0648.80 ▼16.69
Posts /wp-admin/edit.php3.52 ▲0.1651.10 ▼1.80
Add New Post /wp-admin/post-new.php6.00 ▲0.1290.00 ▼14.33
Media Library /wp-admin/upload.php3.33 ▲0.1036.42 ▲1.79

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ajar in5 Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,195 ▲43413.58 ▼0.778.35 ▲6.6337.84 ▼3.93
Dashboard /wp-admin2,463 ▲2835.92 ▲0.2591.52 ▼8.5083.51 ▲40.35
Posts /wp-admin/edit.php2,365 ▲2652.41 ▲0.4042.90 ▲3.2938.63 ▲2.96
Add New Post /wp-admin/post-new.php6,451 ▲4,92018.83 ▼4.11933.59 ▲310.7337.34 ▼20.43
Media Library /wp-admin/upload.php1,662 ▲2624.33 ▲0.16104.48 ▲2.4275.61 ▲33.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/ajar-productions-in5-embed/in5-embed.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/ajar-productions-in5-embed/in5-embed.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 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
10 plugin tags: embed, banner, upload, html5, indesign...

ajar-productions-in5-embed/index.php 92% from 13 tests

"Ajar in5 Embed" version 3.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("ajar-productions-in5-embed.php" instead of "index.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
No dangerous file extensions were detected10,663 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions38100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.43MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png128.21KB127.48KB▼ 0.57%
assets/screenshot-6.png4.99KB4.95KB▼ 0.69%
assets/screenshot-5.png11.47KB11.11KB▼ 3.13%