78% relogo

Code Review | Relogo

WordPress plugin Relogo scored78%from 54 tests.

About plugin

  • Plugin page: relogo
  • Plugin version: 0.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2013
  • Latest release: Aug 15, 2015
  • Number of updates: 54
  • Update frequency: every 11.9 days
  • Top authors: cconover (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,055 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Relogo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.56 ▼1.80
Dashboard /wp-admin3.34 ▼0.0144.53 ▼15.80
Posts /wp-admin/edit.php3.39 ▲0.0346.73 ▼0.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.21 ▼19.20
Media Library /wp-admin/upload.php3.26 ▲0.0332.56 ▼3.16
Relogo /wp-admin/options-general.php?page=cc-relogo3.2029.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
cc_relogo_options
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Relogo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.58 ▼0.721.83 ▼0.1738.34 ▼4.98
Dashboard /wp-admin2,216 ▲315.79 ▼0.05105.46 ▲1.5039.12 ▼1.86
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0040.21 ▲0.3335.33 ▼2.32
Add New Post /wp-admin/post-new.php1,545 ▲1723.16 ▲5.13665.42 ▲36.1058.98 ▼0.43
Media Library /wp-admin/upload.php1,404 ▲194.23 ▼0.0199.32 ▼5.3943.54 ▼1.61
Relogo /wp-admin/options-general.php?page=cc-relogo8122.0226.4431.19

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=cc-relogo
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=cc-relogo
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/relogo/wp-relogo.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/relogo/admin/wp-relogo-admin.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: logo, relogo, graphics, head

relogo/wp-relogo.php 85% from 13 tests

"Relogo" version 0.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 189 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("relogo.php" instead of "wp-relogo.php")

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
There were no executable files found in this plugin176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34264162
SVG10114

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions14
▷ Named functions14100.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png38.61KB12.57KB▼ 67.45%
assets/img/relogo.png35.83KB11.33KB▼ 68.37%