79% froont

Code Review | Froont for WordPress

WordPress plugin Froont for WordPress scored79%from 54 tests.

About plugin

  • Plugin page: froont
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5
  • WordPress version: 6.3.1
  • First release: Dec 16, 2016
  • Latest release: Oct 30, 2020
  • Number of updates: 12
  • Update frequency: every 117.6 days
  • Top authors: froont (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /809 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 gracefully, with no errors

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

Analyzing server-side resources used by Froont for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1345.47 ▼4.46
Dashboard /wp-admin3.43 ▲0.1247.00 ▼0.49
Posts /wp-admin/edit.php3.54 ▲0.1848.23 ▼0.79
Add New Post /wp-admin/post-new.php6.03 ▲0.1598.96 ▼6.55
Media Library /wp-admin/upload.php3.35 ▲0.1234.04 ▲1.64
Froont /wp-admin/options-general.php?page=froont3.3231.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Froont for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.22 ▼1.221.58 ▼0.3743.33 ▲6.23
Dashboard /wp-admin2,211 ▲234.87 ▼0.99110.28 ▲4.2642.50 ▼7.11
Posts /wp-admin/edit.php2,100 ▲112.04 ▲0.0340.11 ▼1.0634.50 ▼0.44
Add New Post /wp-admin/post-new.php6,174 ▲4,63222.68 ▲4.37906.57 ▲298.0757.93 ▼3.26
Media Library /wp-admin/upload.php1,396 ▲84.24 ▲0.06102.37 ▲6.9444.70 ▲1.54
Froont /wp-admin/options-general.php?page=froont8212.0422.8529.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/froont/public/partials/froont-public-display.php
    • > /wp-content/plugins/froont/admin/partials/froont-admin-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/froont/public/template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
2 plugin tags: froont, design

froont/froont.php Passed 13 tests

The primary PHP file in "Froont for WordPress" version 1.0.0 is used by WordPress to initiate all plugin functionality
47 characters long description:
Publish your Froont projects as posts or pages.

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
No dangerous file extensions were detected622 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14225603533
JavaScript2122768
CSS23414
Markdown1307

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods45
▷ Static methods36.67%
▷ Public methods4088.89%
▷ Protected methods00.00%
▷ Private methods511.11%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.44MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png346.45KB148.09KB▼ 57.25%
assets/icon-128x128.png0.11KB0.12KB0.00%
assets/icon-256x256.png0.13KB0.14KB0.00%
assets/banner-772x250.png99.07KB43.14KB▼ 56.46%