84% refresh

Code Review | REFRESH - Professional WP Login

WordPress plugin REFRESH - Professional WP Login scored 84% from 54 tests.

About plugin

  • Plugin page: refresh
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 8, 2018
  • Latest release: Nov 8, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: antoinelechenault (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by REFRESH - Professional WP Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.74 ▼6.94
Dashboard /wp-admin3.33 ▲0.0344.38 ▼1.53
Posts /wp-admin/edit.php3.38 ▲0.0246.00 ▲2.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.67 ▼4.76
Media Library /wp-admin/upload.php3.25 ▲0.0238.48 ▲4.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for REFRESH - Professional WP Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.071.58 ▼0.2339.24 ▼4.51
Dashboard /wp-admin2,222 ▲475.78 ▲0.8696.42 ▼16.0137.20 ▼6.58
Posts /wp-admin/edit.php2,105 ▲192.00 ▼0.0440.68 ▲3.7335.09 ▲2.39
Add New Post /wp-admin/post-new.php1,549 ▲3023.19 ▼0.02595.15 ▼130.4650.96 ▼18.11
Media Library /wp-admin/upload.php1,404 ▲224.25 ▲0.02114.13 ▲9.5250.83 ▲4.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/refresh/main.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_url() in wp-content/plugins/refresh/template/admin.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
6 plugin tags: logincustom, stylerwp, login, design, customizerlogin...

refresh/main.php 92% from 13 tests

The main PHP script in "REFRESH - Professional WP Login" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("refresh.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin310 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
Sass1210154
PHP23429133
JavaScript29222
CSS1001

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.18
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin