10% wp-easy-notices

Code Review | WP Easy Notices

WordPress plugin WP Easy Notices scored 10% from 54 tests.

About plugin

  • Plugin page: wp-easy-notices
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Jan 12, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: nateconley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 511 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-easy-notices/wp-easy-notices.php+24
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.94MB] [CPU: ▼56.08ms] Passed 4 tests

This is a short check of server-side resources used by WP Easy Notices
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.24 ▼39.55
Dashboard /wp-admin2.07 ▼1.235.78 ▼43.25
Posts /wp-admin/edit.php2.07 ▼1.296.49 ▼49.91
Add New Post /wp-admin/post-new.php2.07 ▼3.825.84 ▼91.61
Media Library /wp-admin/upload.php2.07 ▼1.165.71 ▼29.68

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WP Easy Notices: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4613.54 ▼0.711.59 ▼0.6643.14 ▼4.52
Dashboard /wp-admin2,209 ▲274.80 ▼0.10109.11 ▲6.1342.54 ▼2.33
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0239.53 ▲4.8234.88 ▲2.70
Add New Post /wp-admin/post-new.php1,548 ▲1518.14 ▼4.97597.74 ▼56.7161.07 ▲2.57
Media Library /wp-admin/upload.php1,385 ▲34.18 ▼0.0596.37 ▼3.2640.13 ▼1.15

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-easy-notices/wp-easy-notices.php+24
    define(): Declaration of case-insensitive constants is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-notices/lib/front-end.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-easy-notices/wp-easy-notices.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-notices/lib/customizer.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Easily add a notice banner from the Customizer.), #2 (Control dismissal of the notice.)
Please take inspiration from this readme.txt

wp-easy-notices/wp-easy-notices.php 92% from 13 tests

The main PHP script in "WP Easy Notices" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin9,409 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,898
PHP37956304
JavaScript72727134
Sass19046
Markdown19016
SVG50010
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected