84% lookbook-embed

Code Review | LOOKBOOK Embed

WordPress plugin LOOKBOOK Embed scored84%from 54 tests.

About plugin

  • Plugin page: lookbook-embed
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 14, 2014
  • Latest release: Sep 15, 2014
  • Number of updates: 9
  • Update frequency: every 3.7 days
  • Top authors: pattyland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,340 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by LOOKBOOK Embed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.31 ▼4.96
Dashboard /wp-admin3.31 ▲0.0144.90 ▼5.97
Posts /wp-admin/edit.php3.36 ▲0.0154.03 ▲2.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.86 ▼9.60
Media Library /wp-admin/upload.php3.23 ▲0.0143.04 ▲6.81

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/lookbook-embed/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for LOOKBOOK Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.41 ▲0.031.77 ▼0.3042.11 ▼6.11
Dashboard /wp-admin2,221 ▲185.86 ▲0.01114.44 ▼1.3541.46 ▼2.70
Posts /wp-admin/edit.php2,100 ▼02.05 ▼0.0041.66 ▲5.4034.72 ▼1.71
Add New Post /wp-admin/post-new.php1,545 ▲1423.41 ▲0.14661.39 ▼17.1167.42 ▲2.20
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0394.90 ▼6.1940.86 ▼4.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/lookbook-embed/lookbook-embed.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: lookbook widget, lookbook, hype button

lookbook-embed/lookbook-embed.php Passed 13 tests

"LOOKBOOK Embed" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
Just add LOOKBOOK links into your posts and the plugin will add the HYPE button for you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111226

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin