89% frakt123

Code Review | Frakt123

WordPress plugin Frakt123 scored89%from 54 tests.

About plugin

  • Plugin page: frakt123
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 18, 2022
  • Latest release: May 8, 2023
  • Number of updates: 19
  • Update frequency: every 23.4 days
  • Top authors: shop123nettbutikker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.98ms] Passed 4 tests

A check of server-side resources used by Frakt123
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.69 ▲2.56
Dashboard /wp-admin3.37 ▲0.0754.57 ▼2.05
Posts /wp-admin/edit.php3.49 ▲0.1349.49 ▼6.47
Add New Post /wp-admin/post-new.php5.98 ▲0.0998.97 ▲3.92
Media Library /wp-admin/upload.php3.30 ▲0.0638.22 ▲2.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
frakt123_custom_shipping_order_sync_version
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Frakt123
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.35 ▼0.001.93 ▲0.0542.27 ▼2.93
Dashboard /wp-admin2,194 ▲175.54 ▼0.0688.00 ▼0.1941.01 ▼2.95
Posts /wp-admin/edit.php2,102 ▲22.06 ▲0.0735.16 ▼0.2233.45 ▼1.73
Add New Post /wp-admin/post-new.php1,528 ▲223.83 ▲0.38636.34 ▼30.2454.95 ▲5.07
Media Library /wp-admin/upload.php1,396 ▼14.21 ▼0.02100.44 ▼2.1142.90 ▼0.80

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
There were no plugin tags found

frakt123/frakt123.php 85% from 13 tests

The main file in "Frakt123" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/langs" does not exist
  • Description: Keep the plugin description shorter than 140 characters (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin320 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3295170292
JavaScript16128

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.38
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods19100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin