90% easy-to-top

Code Review | Easy To Top

WordPress plugin Easy To Top scored90%from 54 tests.

About plugin

  • Plugin page: easy-to-top
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Oct 10, 2021
  • Latest release: Jun 15, 2023
  • Number of updates: 12
  • Update frequency: every 51.3 days
  • Top authors: ashathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /478 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.02MB] [CPU: ▼2.64ms] Passed 4 tests

This is a short check of server-side resources used by Easy To Top
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.12 ▼2.22
Dashboard /wp-admin3.32 ▲0.0245.00 ▼9.04
Posts /wp-admin/edit.php3.37 ▲0.0148.49 ▲2.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.69 ▼1.45
Media Library /wp-admin/upload.php3.25 ▲0.0138.16 ▲5.43

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy To Top
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.51 ▼0.8611.01 ▲9.3629.24 ▼13.73
Dashboard /wp-admin2,222 ▲455.64 ▼0.0285.56 ▼11.0852.64 ▲10.45
Posts /wp-admin/edit.php2,127 ▲272.13 ▲0.1440.60 ▲3.2144.61 ▲10.10
Add New Post /wp-admin/post-new.php1,705 ▲17722.66 ▼0.46647.46 ▼48.5766.51 ▲11.39
Media Library /wp-admin/upload.php1,421 ▲274.26 ▲0.1398.08 ▼3.3151.24 ▲5.26

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: click-to-top, back to top, scroll-to-top, go to top, to-top...

easy-to-top/easy-to-top.php 92% from 13 tests

The principal PHP file in "Easy To Top" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin14,126 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS51,9212011,404
SVG1002,671
PHP1102429
JavaScript20822

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin