94% prophoto-footer-remover

Code Review | ProPhoto Footer Remover

WordPress plugin ProPhoto Footer Remover scored 94% from 54 tests.

About plugin

  • Plugin page: prophoto-footer-r...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Sep 28, 2014
  • Latest release: Sep 28, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bahia0019 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,006 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by ProPhoto Footer Remover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.49 ▲14.21
Dashboard /wp-admin3.06 ▲0.0145.42 ▲4.63
Posts /wp-admin/edit.php3.11 ▲0.0143.15 ▼0.19
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.00 ▼564.39
Media Library /wp-admin/upload.php3.01 ▲0.0034.20 ▲2.18

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ProPhoto Footer Remover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.95 ▲0.428.14 ▼1.3547.14 ▼0.53
Dashboard /wp-admin2,992 ▲586.09 ▼0.05167.21 ▲23.90106.70 ▼0.49
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0059.29 ▼7.3384.13 ▼3.06
Add New Post /wp-admin/post-new.php1,504 ▼17918.64 ▼0.16384.07 ▼4.10105.64 ▼0.76
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.01157.51 ▼6.37116.03 ▲2.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 | 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 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/prophoto-footer-remover/remove-pp-footer.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were no plugin tags found

prophoto-footer-remover/remove-pp-footer.php 85% from 13 tests

Analyzing the main PHP file in "ProPhoto Footer Remover" version 1.0
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("prophoto-footer-remover.php" instead of "remove-pp-footer.php")

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 plugin13 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18910
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin