84% frontkit

Code Review | FrontKit for WordPress

WordPress plugin FrontKit for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: frontkit
  • Plugin version: 1.0.0-alpha-2...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4.2
  • WordPress version: 6.3.1
  • First release: May 3, 2016
  • Latest release: May 11, 2016
  • Number of updates: 9
  • Update frequency: every 5.4 days
  • Top authors: joehoyle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.30ms] Passed 4 tests

An overview of server-side resources used by FrontKit for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▲2.45
Dashboard /wp-admin3.31 ▲0.0145.34 ▼4.17
Posts /wp-admin/edit.php3.36 ▲0.0140.00 ▼15.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.55 ▼24.30
Media Library /wp-admin/upload.php3.23 ▲0.0034.12 ▼0.97

Server storage [IO: ▲0.96MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by FrontKit for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.25 ▼0.101.74 ▼0.0244.37 ▲5.25
Dashboard /wp-admin2,199 ▲225.56 ▼0.0382.13 ▼4.1243.42 ▼1.82
Posts /wp-admin/edit.php2,105 ▲21.99 ▼0.0033.96 ▼10.3534.22 ▼2.45
Add New Post /wp-admin/post-new.php1,533 ▲722.87 ▼0.14613.32 ▼44.0447.51 ▼4.66
Media Library /wp-admin/upload.php1,404 ▲14.18 ▼0.0399.93 ▲1.3941.77 ▼5.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/frontkit/includes/class-frontkit-rest-post-autosave-controller.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add a description for screenshot #4 in frontkit/assets to your readme.txt
Please take inspiration from this readme.txt

frontkit/frontkit.php 92% from 13 tests

The main PHP script in "FrontKit for WordPress" version 1.0.0-alpha-2... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.0.0-alpha-2...")

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
Good job! No executable or dangerous file extensions detected17,843 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14,7839,14717,381
PHP6117326414
Markdown121048
CSS1040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2275.86%
▷ Protected methods26.90%
▷ Private methods517.24%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin