83% custom-footer-codepress

Code Review | Custom Footer - CODEPRESS

WordPress plugin Custom Footer - CODEPRESS scored83%from 54 tests.

About plugin

  • Plugin page: custom-footer-cod...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2022
  • Latest release: Nov 28, 2022
  • Number of updates: 2
  • Update frequency: every 5.5 days
  • Top authors: codepressdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.84ms] Passed 4 tests

This is a short check of server-side resources used by Custom Footer - CODEPRESS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.99 ▼5.98
Dashboard /wp-admin3.33 ▲0.0243.63 ▼4.82
Posts /wp-admin/edit.php3.38 ▲0.0148.33 ▲0.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0377.74 ▼20.19
Media Library /wp-admin/upload.php3.25 ▲0.0133.60 ▼0.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Footer - CODEPRESS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16514.07 ▼0.221.88 ▲0.3336.08 ▼6.22
Dashboard /wp-admin2,216 ▲425.59 ▲0.0780.96 ▼9.1841.48 ▲1.96
Posts /wp-admin/edit.php2,177 ▲952.01 ▼0.0242.59 ▲6.4135.46 ▼0.20
Add New Post /wp-admin/post-new.php1,532 ▲622.98 ▼0.61677.91 ▲2.6652.27 ▼0.39
Media Library /wp-admin/upload.php1,406 ▲94.08 ▼0.18104.57 ▲4.2246.55 ▲0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-footer-codepress/custom-footer-codepress.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
5 plugin tags: rodap, custom footer, footer, personalize footer, alterar rodap

custom-footer-codepress/custom-footer-codepress.php 77% from 13 tests

The principal PHP file in "Custom Footer - CODEPRESS" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin104 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5213081
CSS14023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ 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 methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 2.99MB with 1.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png570.61KB187.92KB▼ 67.07%
assets/logo-256x256.png138.75KB50.09KB▼ 63.90%
screenshot-2.png4.45KB1.60KB▼ 64.08%
assets/screenshot-1.png21.27KB9.21KB▼ 56.68%
assets/screenshot-2.png4.45KB1.60KB▼ 64.08%