83% formitable-development-kit

Code Review | Formitable Development Kit

WordPress plugin Formitable Development Kit scored83%from 54 tests.

About plugin

  • Plugin page: formitable-develo...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 29, 2017
  • Latest release: Dec 7, 2022
  • Number of updates: 35
  • Update frequency: every 51.5 days
  • Top authors: formitable (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /7,165 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: ▼15.14MB] [CPU: ▼3,133,190.28ms] Passed 4 tests

A check of server-side resources used by Formitable Development Kit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0146.86 ▲2.85
Dashboard /wp-admin3.36 ▼60.6153.00 ▼12,532,751.80
Posts /wp-admin/edit.php3.41 ▲0.0149.02 ▼0.65
Add New Post /wp-admin/post-new.php5.94 ▲0.0188.36 ▼10.82
Media Library /wp-admin/upload.php3.29 ▲0.0140.89 ▲2.17
Formitable /wp-admin/options-general.php?page=Formitable3.3237.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Formitable Development Kit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.20 ▼0.463.63 ▲1.9842.27 ▲1.38
Dashboard /wp-admin2,202 ▲225.61 ▲0.0387.65 ▼7.4142.43 ▼1.32
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0435.54 ▼3.9038.23 ▼0.24
Add New Post /wp-admin/post-new.php1,529 ▼522.94 ▲4.85697.46 ▲28.0662.01 ▼8.50
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.04100.00 ▼5.0843.96 ▼4.15
Formitable /wp-admin/options-general.php?page=Formitable1,3072.3342.1525.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Formitable
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Formitable
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Version not formatted correctly
  • Contributors: The plugin contributors field is missing
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

formitable-development-kit/formitable_development_kit.php 92% from 13 tests

"Formitable Development Kit" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("formitable-development-kit.php" instead of "formitable_development_kit.php")

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
There were no executable files found in this plugin286 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24611256
CSS16022
Markdown1405
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
No PNG files were detected