78% blog-settings

Code Review | Blog Settings

WordPress plugin Blog Settings scored78%from 54 tests.

About plugin

  • Plugin page: blog-settings
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2012
  • Latest release: Oct 8, 2012
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: php.sandeepkumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Blog Settings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.52 ▲0.51
Dashboard /wp-admin3.31 ▲0.0151.64 ▲0.57
Posts /wp-admin/edit.php3.37 ▲0.0145.90 ▼11.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.56 ▼14.90
Media Library /wp-admin/upload.php3.24 ▲0.0138.44 ▼2.00
Add Option /wp-admin/admin.php?page=wp_options_form3.1831.39
WP Options /wp-admin/admin.php?page=wp_options3.2237.79

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Blog Settings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲8113.74 ▼0.652.00 ▼0.2342.81 ▼2.59
Dashboard /wp-admin2,245 ▲395.85 ▲0.95109.20 ▲7.7640.75 ▲1.20
Posts /wp-admin/edit.php2,127 ▲242.02 ▲0.0040.09 ▼1.2734.61 ▼3.26
Add New Post /wp-admin/post-new.php1,567 ▲1323.41 ▲5.41684.62 ▼1.5569.42 ▲10.83
Media Library /wp-admin/upload.php1,424 ▲244.30 ▲0.0398.97 ▼8.2442.69 ▼7.58
Add Option /wp-admin/admin.php?page=wp_options_form9352.0226.2432.97
WP Options /wp-admin/admin.php?page=wp_options1,5092.0624.0035.01

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wp_options_form
    • > Notice in wp-content/plugins/blog-settings/blog-settings.php+197
    Undefined index: nonce

SRP 50% 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
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/blog-settings/blog-settings.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/blog-settings/blog-settings.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blog-settings/blog-settings.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("(a link for donating)")
  • Plugin Name: You should set the name of your plugin on the first line ( === blog-settings === )
Please take inspiration from this readme.txt

blog-settings/blog-settings.php Passed 13 tests

The principal PHP file in "Blog Settings" v. 1.0 is loaded by WordPress automatically on each request
123 characters long description:
Configure Wordpress Options Saved in Database. Add a new options or update existing one even you're a non technical person.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected271 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1436271

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
No PNG files were detected