68% wp247-extension-notification-client

Code Review | WP247 Extension Notification Client

WordPress plugin WP247 Extension Notification Client scored68%from 54 tests.

About plugin

  • Plugin page: wp247-extension-n...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2017
  • Latest release: Dec 14, 2017
  • Number of updates: 13
  • Update frequency: every 1.1 days
  • Top authors: wescleveland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /803 total downloads

Benchmarks

Plugin footprint 65% 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.81MB] [CPU: ▼32.90ms] Passed 4 tests

An overview of server-side resources used by WP247 Extension Notification Client
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.25 ▼3.73
Dashboard /wp-admin3.13 ▼0.1726.28 ▼27.74
Posts /wp-admin/edit.php3.14 ▼0.2222.58 ▼25.79
Add New Post /wp-admin/post-new.php3.13 ▼2.7525.87 ▼65.21
Media Library /wp-admin/upload.php3.13 ▼0.1024.65 ▼12.87
Extension Notifications /wp-admin/options-general.php?page=wp247xns_client_options3.1423.90

Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
wp247xns_client_extensions
widget_theysaidso_widget
can_compress_scripts
wp247xns_client_settings
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP247 Extension Notification Client
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.38 ▲0.111.73 ▼0.0546.80 ▲0.34
Dashboard /wp-admin2,239 ▲595.64 ▼0.0191.77 ▼8.6243.25 ▼3.20
Posts /wp-admin/edit.php2,153 ▲532.18 ▲0.2039.88 ▲0.0438.21 ▼1.49
Add New Post /wp-admin/post-new.php1,564 ▲3623.12 ▲0.11608.14 ▼39.7552.56 ▼14.89
Media Library /wp-admin/upload.php1,452 ▲554.29 ▲0.09102.99 ▼3.7547.09 ▲3.62
Extension Notifications /wp-admin/options-general.php?page=wp247xns_client_options1,5433.6867.9736.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp247-extension-notification-client/admin/wp247-settings-api/wp247-settings-api.class.php+292
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • wp247xns_client_extensions
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • wp247xns_client_settings
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp247xns_client_options
    • > Deprecated in wp-content/plugins/wp247-extension-notification-client/admin/wp247-settings-api/wp247-settings-api.class.php+292
    Function create_function() is deprecated

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 take a closer look at the following
  • 17× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-extension-notification-client-admin-ajax-extension-reset.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-extension-notification-client-admin.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-extension-notification-client-admin-fields.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-extension-notification-client-admin-help-sidebar.php
    • > /wp-content/plugins/wp247-extension-notification-client/include/wp247-extension-notification-client-notices-ajax-dismiss-notice.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-extension-notification-client-admin-ajax-extension-refresh.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-settings-api/wp247-settings-api.class.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247-extension-notification-client-admin-ajax-view-notice.php
    • > /wp-content/plugins/wp247-extension-notification-client/wp247-extension-notification-client.php
    • > /wp-content/plugins/wp247-extension-notification-client/admin/wp247xns-client-corequisite-notice/wp247xns-client-corequisite-notice.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Extension Notification Client Settings), #2 (Extension Notification Client Individual Extensions Settings), #3 (Extension Notification Client Help - Overview), #4 (Extension Notification Client Help - Notices), #5 (Extension Notification Client Help - Settings), #6 (Extension Notification Client Help - Privacy Policy)
You can take inspiration from this readme.txt

wp247-extension-notification-client/wp247-extension-notification-client.php 92% from 13 tests

The principal PHP file in "WP247 Extension Notification Client" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 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
There were no executable files found in this plugin2,392 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP173517211,758
JavaScript41927271
CSS34114186
PO File15054177

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity74.00
▷ Minimum class complexity4.00
▷ Maximum class complexity169.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods93
▷ Static methods33.23%
▷ Public methods9197.85%
▷ Protected methods00.00%
▷ Private methods22.15%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants853.33%
▷ Class constants746.67%
▷ Public constants7100.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