84% wp-core-settings-reduction-project

Code Review | WP Core Settings Reduction Project

WordPress plugin WP Core Settings Reduction Project scored84%from 54 tests.

About plugin

  • Plugin page: wp-core-settings-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Sep 15, 2015
  • Latest release: Sep 15, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: chriscct7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,025 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.00MB] [CPU: ▼5.99ms] Passed 4 tests

This is a short check of server-side resources used by WP Core Settings Reduction Project
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.63 ▼1.39
Dashboard /wp-admin3.31 ▼0.0352.25 ▼8.52
Posts /wp-admin/edit.php3.37 ▲0.0148.66 ▼7.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.26 ▼6.80
Media Library /wp-admin/upload.php3.24 ▲0.0139.49 ▲2.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Core Settings Reduction Project
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲3514.25 ▼0.031.89 ▲0.3144.56 ▲5.54
Dashboard /wp-admin2,187 ▲105.59 ▼0.0895.01 ▼31.6039.02 ▼16.45
Posts /wp-admin/edit.php2,095 ▼81.97 ▼0.0135.74 ▼6.3533.89 ▼1.68
Add New Post /wp-admin/post-new.php1,520 ▼823.30 ▲0.29675.75 ▼10.4758.44 ▲12.66
Media Library /wp-admin/upload.php1,386 ▼144.19 ▼0.0596.79 ▼10.7046.64 ▲0.78

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-core-settings-reduction-project/replacements/options-general.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-core-settings-reduction-project/replacements/options-discussion.php on line 9
    • > PHP Warning
      require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-core-settings-reduction-project/replacements/options-general.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/wp-core-settings-reduction-project/replacements/options.php on line 19
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-core-settings-reduction-project/replacements/options-general.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-core-settings-reduction-project/replacements/options.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-core-settings-reduction-project/wp-core-settings-reduction-project.php:14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-core-settings-reduction-project/replacements/options-discussion.php on line 9
    • > PHP Warning
      require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-core-settings-reduction-project/replacements/options.php on line 19
    • > PHP Warning
      require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-core-settings-reduction-project/replacements/options-discussion.php on line 9

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: feature-as-plugin

wp-core-settings-reduction-project/wp-core-settings-reduction-project.php 92% from 13 tests

This is the main PHP file of "WP Core Settings Reduction Project" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 322 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected844 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4128145844

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin