84% isiatotop

Code Review | isiaToTop

WordPress plugin isiaToTop scored84%from 54 tests.

About plugin

  • Plugin page: isiatotop
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Jun 30, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: vurghusm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /489 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by isiaToTop
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.88 ▼3.53
Dashboard /wp-admin3.33 ▼0.0147.00 ▼18.85
Posts /wp-admin/edit.php3.38 ▲0.0343.95 ▼1.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.63 ▼6.80
Media Library /wp-admin/upload.php3.25 ▲0.0337.70 ▲4.09

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by isiaToTop
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11814.74 ▲0.422.86 ▲0.9545.16 ▲3.24
Dashboard /wp-admin2,209 ▲184.87 ▼1.01104.33 ▼7.1443.28 ▲1.37
Posts /wp-admin/edit.php2,092 ▲62.01 ▲0.0436.06 ▼0.9532.85 ▼1.52
Add New Post /wp-admin/post-new.php1,531 ▲1223.27 ▲0.12652.37 ▲35.7860.03 ▲9.40
Media Library /wp-admin/upload.php1,388 ▲64.17 ▼0.1196.37 ▼3.1645.97 ▲1.26

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/isiatotop/index.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: scroll, javascript, top

isiatotop/isiatotop.php Passed 13 tests

The main PHP script in "isiaToTop" version 1.0.0 is automatically included on every request by WordPress
74 characters long description:
A versatile and mobile friendly 'scroll to top' plugin based on isiaToTop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected117 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23613291
JavaScript22014
CSS21012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.82KB6.52KB▼ 44.84%