89% froged

Code Review | FROGED

WordPress plugin FROGED scored89%from 54 tests.

About plugin

  • Plugin page: froged
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 16, 2019
  • Latest release: May 6, 2022
  • Number of updates: 27
  • Update frequency: every 32.7 days
  • Top authors: frogedtech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,279 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.84ms] Passed 4 tests

An overview of server-side resources used by FROGED
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0934.54 ▼5.78
Dashboard /wp-admin3.40 ▲0.0945.55 ▼3.86
Posts /wp-admin/edit.php3.51 ▲0.1546.79 ▼0.45
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.52 ▼5.27
Media Library /wp-admin/upload.php3.32 ▲0.0934.48 ▲0.12
Froged /wp-admin/options-general.php?page=froged3.2829.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
froged_woo_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for FROGED
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.18 ▼1.201.81 ▼0.0340.04 ▼8.43
Dashboard /wp-admin2,207 ▲214.85 ▼0.12107.75 ▼8.7242.83 ▲3.51
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0339.78 ▲4.4935.27 ▲1.64
Add New Post /wp-admin/post-new.php1,545 ▲1718.52 ▲0.29602.99 ▲5.4656.68 ▲7.00
Media Library /wp-admin/upload.php1,395 ▲104.16 ▼0.0694.36 ▲1.0744.00 ▲3.74
Froged /wp-admin/options-general.php?page=froged8652.0221.9626.56

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 92 tag instead of maximum 10
Please take inspiration from this readme.txt

froged/froged-conf.php 92% from 13 tests

This is the main PHP file of "FROGED" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("froged.php" instead of "froged-conf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin459 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44152439
JavaScript10020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
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