84% remove-ozh-unobstrusive-credits-in-footer

Code Review | Remove Ozh unobstrusive credits in footer

WordPress plugin Remove Ozh unobstrusive credits in footer scored84%from 54 tests.

About plugin

  • Plugin page: remove-ozh-unobst...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.3-4.9.3
  • WordPress version: 6.3.1
  • First release: Jun 14, 2014
  • Latest release: Dec 9, 2018
  • Number of updates: 6
  • Update frequency: every 273.7 days
  • Top authors: tempor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,850 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼13.10ms] Passed 4 tests

An overview of server-side resources used by Remove Ozh unobstrusive credits in footer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.71 ▼5.90
Dashboard /wp-admin3.31 ▼0.0439.72 ▼18.73
Posts /wp-admin/edit.php3.36 ▲0.0047.29 ▼1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.16 ▼26.54
Media Library /wp-admin/upload.php3.23 ▲0.0034.86 ▲0.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Remove Ozh unobstrusive credits in footer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.131.75 ▼0.1737.83 ▼5.35
Dashboard /wp-admin2,206 ▲145.07 ▲0.13110.53 ▼0.1543.13 ▲1.82
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0034.77 ▼6.4631.82 ▼2.42
Add New Post /wp-admin/post-new.php1,537 ▲423.10 ▼0.23665.03 ▼0.8357.41 ▼0.41
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0296.95 ▲1.0441.61 ▼0.19

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/remove-ozh-unobstrusive-credits-in-footer/ozh_remove.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

remove-ozh-unobstrusive-credits-in-footer/ozh_remove.php 92% from 13 tests

The main PHP script in "Remove Ozh unobstrusive credits in footer" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("remove-ozh-unobstrusive-credits-in-footer.php" instead of "ozh_remove.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16193

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin