83% control-wp-core-emails

Code Review | Control WP Core Emails

WordPress plugin Control WP Core Emails scored83%from 54 tests.

About plugin

  • Plugin page: control-wp-core-e...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2016
  • Latest release: Sep 21, 2016
  • Number of updates: 7
  • Update frequency: every 16.4 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,133 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.34ms] Passed 4 tests

Analyzing server-side resources used by Control WP Core Emails
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.55 ▼2.74
Dashboard /wp-admin3.34 ▲0.0349.29 ▼6.37
Posts /wp-admin/edit.php3.39 ▲0.0348.06 ▼4.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.85 ▼7.29
Media Library /wp-admin/upload.php3.26 ▲0.0345.11 ▲11.15

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • There were 9083 files (143,139.73KB) illegally modified outside of "wp-content/plugins/control-wp-core-emails/" and "wp-content/uploads/"
    • (new file) jomres/libraries/packages/node_modules/.bin/commonmark.cmd
    • (new file) jomres/core-plugins/.empty
    • (new file) jomres/configuration.php
    • (new file) jomres/libraries/packages/node_modules/ansi-styles/index.js
    • (new file) jomres/libraries/packages/node_modules/.bin/commonmark
    • (new file) jomres/encryption_key.class.php
    • (new file) jomres/cache/.empty
    • (new file) jomres/libraries/packages/node_modules/.bin/tmpl.js
    • (new file) jomres/libraries/packages/node_modules/.bin/tmpl.js.cmd
    • (new file) jomres/libraries/packages/node_modules/ansi-styles/license
    • ...
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Control WP Core Emails
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.18 ▼1.194.78 ▲2.6944.01 ▼0.64
Dashboard /wp-admin2,206 ▲185.92 ▲0.89108.82 ▲4.5240.88 ▼2.87
Posts /wp-admin/edit.php2,086 ▼32.03 ▼0.0039.78 ▲4.7734.38 ▲0.16
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▲5.86669.66 ▼21.6958.16 ▲0.55
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0592.45 ▼14.4545.98 ▲0.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/control-wp-core-emails/lib/global.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/control-wp-core-emails/lib/settings.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/control-wp-core-emails/control-wp-core-emails.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: emails, core updates

control-wp-core-emails/control-wp-core-emails.php 85% from 13 tests

The principal PHP file in "Control WP Core Emails" v. 0.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin107 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.67
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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