84% remove-yoast-notices

Code Review | Remove Admin Notices

WordPress plugin Remove Admin Notices scored84%from 54 tests.

About plugin

  • Plugin page: remove-yoast-notices
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Jul 26, 2016
  • Number of updates: 10
  • Update frequency: every 7.6 days
  • Top authors: voldemortensen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.12ms] Passed 4 tests

A check of server-side resources used by Remove Admin Notices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.08 ▲7.29
Dashboard /wp-admin3.32 ▼0.0348.93 ▼10.40
Posts /wp-admin/edit.php3.37 ▲0.0144.01 ▼1.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.94 ▼15.94
Media Library /wp-admin/upload.php3.24 ▲0.0133.76 ▼0.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Remove Admin Notices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.74 ▲0.491.75 ▲0.1443.27 ▲2.71
Dashboard /wp-admin2,209 ▲245.86 ▲0.01103.65 ▲6.7540.35 ▼2.46
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0235.20 ▼0.5034.49 ▲1.76
Add New Post /wp-admin/post-new.php1,550 ▲818.16 ▼0.12623.83 ▼29.0568.00 ▲14.69
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0492.26 ▼6.2440.37 ▼1.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× 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/remove-yoast-notices/remove-admin-notices.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: yoast, ads, remove, notices, spam...

remove-yoast-notices/remove-admin-notices.php 85% from 13 tests

This is the main PHP file of "Remove Admin Notices" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-yoast-notices.php" instead of "remove-admin-notices.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 406 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
Success! There were no dangerous files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14835

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin