100% easy-to-top

Code Review | Easy To Top

WordPress plugin Easy To Top scored 100% from 54 tests.

About plugin

  • Plugin page: easy-to-top
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.8.1
  • First release: Oct 10, 2021
  • Latest release: Nov 7, 2021
  • Number of updates: 11
  • Update frequency: every 2.7 days
  • Top authors: ashathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 70 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼669.69ms] 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 /2.86 ▲0.0236.43 ▼4.56
Dashboard /wp-admin3.08 ▲0.0244.87 ▼8.41
Posts /wp-admin/edit.php3.13 ▲0.0253.11 ▲4.29
Add New Post /wp-admin/post-new.php5.44 ▲0.00109.30 ▼2,659.71
Media Library /wp-admin/upload.php3.02 ▲0.0135.53 ▼6.09

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, no new options

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 /3,857 ▲26116.73 ▲0.8115.22 ▲4.0351.33 ▼2.08
Dashboard /wp-admin3,004 ▲705.89 ▼0.04149.80 ▲3.63124.25 ▲16.59
Posts /wp-admin/edit.php2,759 ▲202.60 ▼0.0887.33 ▲18.38201.71 ▲107.91
Add New Post /wp-admin/post-new.php1,709 ▼1,86618.15 ▼2.06392.65 ▼61.49122.98 ▼2.35
Media Library /wp-admin/upload.php1,770 ▼405.01 ▼0.01165.11 ▲3.79149.86 ▲25.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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: easy to top, go to top, go top, click-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.3 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