73% scrolling-overlays

Code Review | Scrolling Overlays

WordPress plugin Scrolling Overlays scored73%from 54 tests.

About plugin

  • Plugin page: scrolling-overlays
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0
  • WordPress version: 6.3.1
  • First release: Jan 7, 2019
  • Latest release: Jan 23, 2019
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: jconsidine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.12ms] Passed 4 tests

This is a short check of server-side resources used by Scrolling Overlays
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.22 ▼4.83
Dashboard /wp-admin3.35 ▲0.0552.87 ▼0.14
Posts /wp-admin/edit.php3.40 ▲0.0451.65 ▲0.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0498.04 ▲0.76
Media Library /wp-admin/upload.php3.28 ▲0.0435.38 ▲0.33

Server storage [IO: ▲10.41MB] [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/scrolling-overlays/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 24 new files
Database: 1 new table, 7 new options
New tables
wp_koptional_overlays
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
koptional_scrolling_overlays_db_version
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Scrolling Overlays: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17515.93 ▲1.3427.15 ▲25.2735.94 ▼5.82
Dashboard /wp-admin2,237 ▲374.86 ▼0.04108.20 ▼8.3245.19 ▼5.58
Posts /wp-admin/edit.php2,116 ▲191.98 ▼0.0739.21 ▲1.4034.51 ▼1.27
Add New Post /wp-admin/post-new.php1,558 ▲2723.26 ▲0.03653.66 ▼28.7264.01 ▲8.80
Media Library /wp-admin/upload.php1,416 ▲194.25 ▲0.0194.57 ▼9.5944.22 ▼1.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_koptional_overlays
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • koptional_scrolling_overlays_db_version
    • widget_recent-posts
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrolling-overlays/koptional-video-overlay.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (A Youtube Overlay insert) image not found
The official readme.txt might help

scrolling-overlays/koptional-video-overlay.php 92% from 13 tests

Analyzing the main PHP file in "Scrolling Overlays" version 0.1.1
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scrolling-overlays.php" instead of "koptional-video-overlay.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
Good job! No executable or dangerous file extensions detected3,353 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS526522,882
PHP13422279
JavaScript922365186
Markdown1206

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.25
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
demoimage.png40.19KB14.17KB▼ 64.74%