74% core-updates-permission

Code Review | Core Updates Permission

WordPress plugin Core Updates Permission scored74%from 54 tests.

About plugin

  • Plugin page: core-updates-perm...
  • Plugin version: 1.4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.6
  • WordPress version: 6.3.1
  • First release: Sep 5, 2013
  • Latest release: Sep 5, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mauteri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,047 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.63MB] [CPU: ▼48.14ms] Passed 4 tests

This is a short check of server-side resources used by Core Updates Permission
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.13520.16 ▲478.81
Dashboard /wp-admin2.33 ▼1.0217.79 ▼48.98
Posts /wp-admin/edit.php2.33 ▼1.0312.46 ▼37.87
Add New Post /wp-admin/post-new.php2.33 ▼3.5611.96 ▼83.03
Media Library /wp-admin/upload.php2.33 ▼0.9011.62 ▼22.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Core Updates Permission
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,752 ▼914.39 ▲0.041.71 ▲0.2139.95 ▼1.44
Dashboard /wp-admin2,171 ▼95.58 ▼0.0883.31 ▼5.8541.81 ▲1.63
Posts /wp-admin/edit.php2,077 ▼231.96 ▼0.0534.51 ▼3.4836.84 ▼1.11
Add New Post /wp-admin/post-new.php1,509 ▼1722.48 ▼0.53592.34 ▼112.8256.00 ▲0.55
Media Library /wp-admin/upload.php1,373 ▼244.21 ▼0.08103.12 ▲4.5644.93 ▲0.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/core-updates-permission/core-updates-permission.php+103
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/core-updates-permission/core-updates-permission.php:261

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: disable, updates, core, theme

core-updates-permission/core-updates-permission.php 92% from 13 tests

The principal PHP file in "Core Updates Permission" v. 1.4.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 198 characters long)

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 detected90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13314090

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.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin