84% elevator

Code Review | Elevator

WordPress plugin Elevator scored84%from 54 tests.

About plugin

  • Plugin page: elevator
  • Plugin version: 1.0.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2015
  • Latest release: Aug 14, 2022
  • Number of updates: 23
  • Update frequency: every 116.0 days
  • Top authors: ericakfranz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,489 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Elevator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▲3.26
Dashboard /wp-admin3.31 ▼0.0343.43 ▼15.81
Posts /wp-admin/edit.php3.36 ▲0.0142.38 ▼7.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.24 ▼17.41
Media Library /wp-admin/upload.php3.23 ▲0.0134.82 ▼6.74

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Elevator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.79 ▲0.432.73 ▲1.1544.90 ▲4.19
Dashboard /wp-admin2,206 ▲184.82 ▼0.0999.30 ▼1.3236.98 ▼5.82
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0137.05 ▼5.1631.32 ▼6.87
Add New Post /wp-admin/post-new.php1,528 ▼1423.41 ▲5.23659.44 ▲63.0759.74 ▲6.18
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.03101.89 ▲3.8644.34 ▲2.09

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/elevator/elevator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
4 plugin tags: music, navigation, scrolltotop, backtotop

elevator/elevator.php Passed 13 tests

The main PHP file in "Elevator" ver. 1.0.5.4 adds more information about the plugin and also serves as the entry point for this plugin
108 characters long description:
Smoothly escort your visitors back to the top of the page with music accompaniment and a 'Ting!' on arrival.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin180 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24039106
Markdown126041
PHP1152133

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin