78% freeton-wp

Code Review | Freeton WP

WordPress plugin Freeton WP scored78%from 54 tests.

About plugin

  • Plugin page: freeton-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2021
  • Latest release: Aug 31, 2021
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: weborsha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.26ms] Passed 4 tests

This is a short check of server-side resources used by Freeton WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.70 ▲8.56
Dashboard /wp-admin3.44 ▲0.1344.06 ▼1.90
Posts /wp-admin/edit.php3.49 ▲0.1347.65 ▲0.13
Add New Post /wp-admin/post-new.php6.02 ▲0.1480.46 ▼14.35
Media Library /wp-admin/upload.php3.36 ▲0.1336.32 ▲3.07
WP FreeTon setting /wp-admin/admin.php?page=web-freeton-wp3.3331.38
Style Settings /wp-admin/admin.php?page=web-freeton-wp-styles3.3328.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Freeton WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲19614.01 ▼0.367.08 ▲5.2937.71 ▼0.94
Dashboard /wp-admin2,238 ▲505.07 ▼0.01101.75 ▼0.4335.58 ▼9.80
Posts /wp-admin/edit.php2,118 ▲292.29 ▲0.2838.26 ▼0.8836.91 ▲0.51
Add New Post /wp-admin/post-new.php1,552 ▲3823.48 ▲5.89663.77 ▲43.5159.09 ▲6.22
Media Library /wp-admin/upload.php1,420 ▲324.45 ▲0.2697.56 ▼1.4043.71 ▲0.38
WP FreeTon setting /wp-admin/admin.php?page=web-freeton-wp9081.9226.2227.15
Style Settings /wp-admin/admin.php?page=web-freeton-wp-styles8221.9023.3924.14

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freeton-wp/freeton-wp.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=web-freeton-wp
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: edf is not defined" "ReferenceError: edf is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=web-freeton-wp:188:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=web-freeton-wp
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: edf is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

freeton-wp/freeton-wp.php Passed 13 tests

The main file in "Freeton WP" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
25 characters long description:
Login with FreeTon Wallet

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,350 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31851401,252
PHP2210441,228
CSS33618479
PO File2168180391

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity150.00
▷ Minimum class complexity150.00
▷ Maximum class complexity150.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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
No PNG images were found in this plugin