84% rocketfuel-launch6-popup-script

Code Review | Launch6 - Insert Popup Code

WordPress plugin Launch6 - Insert Popup Code scored84%from 54 tests.

About plugin

  • Plugin page: rocketfuel-launch...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.5-4.4
  • WordPress version: 6.3.1
  • First release: Sep 9, 2016
  • Latest release: May 22, 2017
  • Number of updates: 26
  • Update frequency: every 10.7 days
  • Top authors: launch6media (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Launch6 - Insert Popup Code
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.84 ▼8.71
Dashboard /wp-admin3.32 ▼0.0254.65 ▼11.48
Posts /wp-admin/edit.php3.38 ▲0.0254.15 ▼6.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.00 ▼31.79
Media Library /wp-admin/upload.php3.25 ▲0.0246.23 ▲11.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Launch6 - Insert Popup Code
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.57 ▲0.361.81 ▲0.0144.50 ▲3.77
Dashboard /wp-admin2,198 ▲305.55 ▼0.02101.09 ▲12.4870.18 ▲26.61
Posts /wp-admin/edit.php2,115 ▲151.98 ▼0.0234.34 ▼8.0135.24 ▼3.54
Add New Post /wp-admin/post-new.php1,692 ▲16422.34 ▼0.77758.15 ▲90.6255.83 ▲2.36
Media Library /wp-admin/upload.php1,415 ▲154.14 ▼0.03101.69 ▼8.4881.02 ▲30.73

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rocketfuel-launch6-popup-script/launch6-rocketfuel.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rocketfuel-launch6-popup-script/admin.options.form.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: footer, insert custom code, launch6 code, launch6 javascript, insert javascript...

rocketfuel-launch6-popup-script/launch6-rocketfuel.php 92% from 13 tests

The entry point to "Launch6 - Insert Popup Code" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rocketfuel-launch6-popup-script.php" instead of "launch6-rocketfuel.php")

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
Success! There were no dangerous files found in this plugin136 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42066112
CSS15024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-bw.png0.59KB0.70KB0.00%
assets/screenshot-1.png126.76KB55.21KB▼ 56.44%
assets/img/icon.png0.92KB0.81KB▼ 12.67%
images/screenshot-1-2.png126.76KB55.21KB▼ 56.44%
assets/img/logo.png8.86KB3.95KB▼ 55.44%