84% makeiteasy-back-to-top

Code Review | MakeITeasy Back To Top

WordPress plugin MakeITeasy Back To Top scored84%from 54 tests.

About plugin

  • Plugin page: makeiteasy-back-t...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Nov 20, 2023
  • Number of updates: 12
  • Update frequency: every 13.1 days
  • Top authors: lovor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,074 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.34ms] Passed 4 tests

This is a short check of server-side resources used by MakeITeasy Back To Top
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.52 ▼6.03
Dashboard /wp-admin3.32 ▲0.0249.87 ▼1.40
Posts /wp-admin/edit.php3.38 ▲0.0148.61 ▲0.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.83 ▼2.71
Media Library /wp-admin/upload.php3.25 ▲0.0136.87 ▲2.69

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MakeITeasy Back To Top
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3114.15 ▲0.081.85 ▼0.1438.72 ▼5.83
Dashboard /wp-admin2,198 ▲215.58 ▼0.0897.12 ▼3.8540.50 ▼3.80
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0139.59 ▼0.6334.30 ▼3.64
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.42 ▲4.56873.03 ▲228.7459.14 ▲13.99
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.0895.74 ▼5.9942.14 ▲0.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makeiteasy-back-to-top/makeiteasy-back-to-top.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
9 plugin tags: block, easy, scroll to top, button, back to top...

makeiteasy-back-to-top/makeiteasy-back-to-top.php Passed 13 tests

The main PHP file in "MakeITeasy Back To Top" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
17 characters long description:
Back to top block

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
Good job! No executable or dangerous file extensions detected71 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON10058
PHP31248
CSS2002
JavaScript2002
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
build/block-assets/keyboard_arrow_up.png0.27KB0.25KB▼ 6.52%