89% core-control

Code Review | Core Control

WordPress plugin Core Control scored 89% from 54 tests.

About plugin

  • Plugin page: core-control
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 5.9.2
  • First release: Jan 2, 2009
  • Latest release: Mar 7, 2016
  • Number of updates: 63
  • Update frequency: every 41.6 days
  • Top authors: dd32 (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active / 91,928 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼301.30ms] Passed 4 tests

A check of server-side resources used by Core Control
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0553.55 ▲4.96
Dashboard /wp-admin3.46 ▲0.0532.91 ▼0.72
Posts /wp-admin/edit.php3.68 ▲0.0436.26 ▼2.76
Add New Post /wp-admin/post-new.php6.92 ▼0.0590.00 ▼1,201.21
Media Library /wp-admin/upload.php3.33 ▲0.0423.26 ▼0.52
Core Control /wp-admin/tools.php?page=core-control3.2822.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Core Control
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.27 ▲0.586.45 ▲0.862.27 ▼0.38
Dashboard /wp-admin2,897 ▲366.07 ▼0.13114.97 ▼34.55153.24 ▼17.52
Posts /wp-admin/edit.php2,693 ▲43.23 ▼0.0163.11 ▲0.34139.54 ▼4.11
Add New Post /wp-admin/post-new.php1,670 ▲918.13 ▲1.83410.50 ▼1.29156.37 ▲1.06
Media Library /wp-admin/upload.php1,703 ▲55.50 ▲0.06139.92 ▲5.23183.82 ▼4.02
Core Control /wp-admin/tools.php?page=core-control1,1642.3755.08101.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 50% 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)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=core-control
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=core-control
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/core-control/core-control.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: manager, filesystem, debug

core-control/core-control.php Passed 13 tests

The principal PHP file in "Core Control" v. 1.2.1 is loaded by WordPress automatically on each request
110 characters long description:
Core Control is a set of plugin modules which can be used to control certain aspects of the WordPress control.

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
No dangerous file extensions were detected1,226 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6179671,226

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity33.57
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin