89% wp-central

Code Review | wpCentral

WordPress plugin wpCentral scored 89% from 53 tests.

About plugin

  • Plugin page: wp-central
  • Plugin version: 1.5.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Oct 15, 2018
  • Latest release: Sep 4, 2021
  • Number of updates: 51
  • Update frequency: every 20.8 days
  • Top authors: softacpriya (100%)

Code review

53 tests

User reviews

35 reviews

Install metrics

100,000+ active / 729,780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by wpCentral
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1343.45 ▲19.30
Dashboard /wp-admin3.07 ▲0.0248.44 ▲2.44
Posts /wp-admin/edit.php3.13 ▲0.0344.34 ▼1.01
Add New Post /wp-admin/post-new.php5.44 ▲0.0190.79 ▼1,099.65
Media Library /wp-admin/upload.php3.02 ▲0.0136.21 ▼2.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 2 new options
New WordPress options
wpcentral_version
wpcentral_auth_key

Browser metrics Passed 4 tests

wpCentral: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲21015.94 ▲0.478.02 ▼0.2943.23 ▼1.60
Dashboard /wp-admin3,071 ▲2186.20 ▲0.36132.44 ▼1.87136.26 ▲32.40
Posts /wp-admin/edit.php2,873 ▲1702.83 ▲0.1361.93 ▼1.39107.85 ▲14.42
Add New Post /wp-admin/post-new.php1,692 ▲3914.12 ▼4.65274.15 ▼86.33109.10 ▲1.39
Media Library /wp-admin/upload.php1,866 ▲975.05 ▲0.03142.82 ▼15.65150.92 ▲33.65

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
  • Zombie WordPress options were found after uninstall: 1 option
    • wpcentral_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: softaculous, backup, themes, manage sites, sites...

wp-central/wpcentral.php 85% from 13 tests

The main PHP script in "wpCentral" version 1.5.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-central.php" instead of "wpcentral.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,096 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,0061,2533,096

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity187.00
▷ Minimum class complexity187.00
▷ Maximum class complexity187.00
Average method complexity17.91
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions112
▷ Named functions112100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpc_ico_dark_19.png1.25KB1.14KB▼ 8.79%
images/wpc_icon_light_19.png1.62KB0.90KB▼ 44.46%
images/facebook.png1.27KB1.56KB0.00%
images/wpc_icon_dark.png12.07KB5.81KB▼ 51.90%
images/twitter.png1.29KB1.46KB0.00%