84% scroll-up-iron-man

Code Review | Scroll Up Iron Man

WordPress plugin Scroll Up Iron Man scored84%from 54 tests.

About plugin

  • Plugin page: scroll-up-iron-man
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 6, 2019
  • Latest release: Oct 14, 2019
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: Somonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /449 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Scroll Up Iron Man
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.08 ▼1.31
Dashboard /wp-admin3.33 ▼0.0147.11 ▼20.28
Posts /wp-admin/edit.php3.38 ▲0.0347.03 ▼7.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.46 ▼11.44
Media Library /wp-admin/upload.php3.25 ▲0.0335.40 ▼2.31
Iron Man Scroll Up /wp-admin/options-general.php?page=irsu3.2232.87

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scroll Up Iron Man
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.43 ▼0.8512.35 ▲10.6844.07 ▼0.77
Dashboard /wp-admin2,196 ▲165.56 ▼0.0993.88 ▲2.3241.03 ▲3.32
Posts /wp-admin/edit.php2,101 ▼21.99 ▼0.0138.64 ▼8.2135.65 ▲2.27
Add New Post /wp-admin/post-new.php1,529 ▲323.22 ▲0.06661.43 ▼44.2364.96 ▲13.69
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.0398.78 ▼15.5348.24 ▼2.72
Iron Man Scroll Up /wp-admin/options-general.php?page=irsu8341.9928.7128.68

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means 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
  • 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/scroll-up-iron-man/scroll-up-iron-man.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: scroll, button

scroll-up-iron-man/scroll-up-iron-man.php Passed 13 tests

This is the main PHP file of "Scroll Up Iron Man" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Animated scroll up button in the form of an Marvel Iron Man.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin195 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript117394
PHP1182161
CSS11340

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
add/sprites/up2.png38.86KB7.14KB▼ 81.63%
add/sprites/up3.png44.83KB19.04KB▼ 57.54%
add/sprites/up.png8.37KB8.36KB0.04%