84% log-deprecated-notices-extender

Code Review | Log Deprecated Notices Extender

WordPress plugin Log Deprecated Notices Extender scored84%from 54 tests.

About plugin

  • Plugin page: log-deprecated-no...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 6.3.1
  • First release: Jan 14, 2012
  • Latest release: Jan 15, 2012
  • Number of updates: 9
  • Update frequency: every 2.2 days
  • Top authors: jkudish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,961 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.16ms] Passed 4 tests

A check of server-side resources used by Log Deprecated Notices Extender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.82 ▼4.84
Dashboard /wp-admin3.31 ▼0.0451.60 ▼13.77
Posts /wp-admin/edit.php3.36 ▲0.0047.94 ▼4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.36 ▼13.61
Media Library /wp-admin/upload.php3.23 ▲0.0036.20 ▼1.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Log Deprecated Notices Extender: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.37 ▼0.904.55 ▲2.4641.73 ▼0.53
Dashboard /wp-admin2,206 ▲184.85 ▼0.0196.48 ▼21.7538.88 ▼7.35
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0436.25 ▲0.5731.56 ▼3.45
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▲0.11592.46 ▼88.7956.74 ▼5.44
Media Library /wp-admin/upload.php1,382 ▼64.25 ▲0.0298.78 ▼19.0544.02 ▼4.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/log-deprecated-notices-extender/log-deprecated-notices-extender.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Deprecated calls are shown in the toolbar) image missing
  • Tested up to: Version not formatted correctly
You can take inspiration from this readme.txt

log-deprecated-notices-extender/log-deprecated-notices-extender.php Passed 13 tests

The principal PHP file in "Log Deprecated Notices Extender" v. 0.1.2 is loaded by WordPress automatically on each request
106 characters long description:
WordPress plugin that extends Andrew Nacin's Log Deprecated Notices to show a link in the WP 3.3+ Toolbar.

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
Good job! No executable or dangerous file extensions detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1153933

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin