84% easy-default-parameters

Code Review | Easy Default Parameters

WordPress plugin Easy Default Parameters scored 84% from 54 tests.

About plugin

  • Plugin page: easy-default-para...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Sep 28, 2012
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: corsonr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.03MB] [CPU: ▼8.36ms] Passed 4 tests

An overview of server-side resources used by Easy Default Parameters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0136.68 ▼2.31
Dashboard /wp-admin3.25 ▼0.0540.41 ▼7.88
Posts /wp-admin/edit.php3.29 ▼0.0637.47 ▼8.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.39 ▼14.72
Media Library /wp-admin/upload.php3.24 ▲0.0136.42 ▼0.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
wp_calendar_block_has_published_posts
rss_language
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Default Parameters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,283 ▼45214.41 ▲0.121.74 ▼0.1652.27 ▲8.32
Dashboard /wp-admin1,724 ▼4645.52 ▲0.6591.37 ▼16.1540.79 ▼0.89
Posts /wp-admin/edit.php1,234 ▼8552.12 ▲0.1129.93 ▼6.0831.82 ▼1.46
Add New Post /wp-admin/post-new.php1,528 ▲1422.59 ▲4.93645.21 ▼29.7255.82 ▲0.33
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.16104.10 ▼2.3646.40 ▼0.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • rss_language
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • wp_calendar_block_has_published_posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-default-parameters/easy-default-parameters.php:105

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: settings, parameters

easy-default-parameters/easy-default-parameters.php Passed 13 tests

The main file in "Easy Default Parameters" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Set your own default parameters on a fresh WordPress install

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181385

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
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