84% scroll-up-oiiio

Code Review | scroll up oiiio

WordPress plugin scroll up oiiio scored84%from 54 tests.

About plugin

  • Plugin page: scroll-up-oiiio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Mar 30, 2014
  • Latest release: Aug 22, 2016
  • Number of updates: 15
  • Update frequency: every 58.4 days
  • Top authors: oiiio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.99ms] Passed 4 tests

Analyzing server-side resources used by scroll up oiiio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.23 ▲2.23
Dashboard /wp-admin3.32 ▼0.0250.96 ▼10.19
Posts /wp-admin/edit.php3.37 ▲0.0249.23 ▲0.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.46 ▼20.30
Media Library /wp-admin/upload.php3.24 ▲0.0137.50 ▲2.30
scroll up /wp-admin/options-general.php?page=scroll-up-oiiio3.2133.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for scroll up oiiio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.41 ▼1.3011.30 ▲9.7746.92 ▲7.57
Dashboard /wp-admin2,199 ▲195.65 ▼0.0392.05 ▲7.2042.62 ▼3.46
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0539.25 ▲4.7637.39 ▲4.38
Add New Post /wp-admin/post-new.php1,532 ▲423.21 ▲0.21661.75 ▼15.5758.21 ▲6.04
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.0093.29 ▼10.3840.74 ▼0.47
scroll up /wp-admin/options-general.php?page=scroll-up-oiiio8952.1823.3327.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-up-oiiio/testimonials.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-up-oiiio/inc/options.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-up-oiiio/main.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: scroll, oiiio, scroll up, api

scroll-up-oiiio/main.php 92% from 13 tests

"scroll up oiiio" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("scroll-up-oiiio.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin716 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34839316
CSS2396215
JavaScript11810185

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cycle-hover.png1.55KB0.55KB▼ 64.45%
img/cycle.png1.40KB0.38KB▼ 72.95%
img/style.png7.37KB3.50KB▼ 52.60%
img/square-hover.png1.26KB0.33KB▼ 73.95%
img/triangle.png1.68KB0.77KB▼ 54.33%