84% wpadmin-motivation

Code Review | WPAdmin Motivation

WordPress plugin WPAdmin Motivation scored84%from 54 tests.

About plugin

  • Plugin page: wpadmin-motivation
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Dec 3, 2018
  • Latest release: Apr 25, 2023
  • Number of updates: 7
  • Update frequency: every 229.1 days
  • Top authors: moneycortex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,099 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.00MB] [CPU: ▼4.43ms] Passed 4 tests

A check of server-side resources used by WPAdmin Motivation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.61 ▼3.63
Dashboard /wp-admin3.31 ▲0.0049.23 ▼5.88
Posts /wp-admin/edit.php3.36 ▲0.0048.30 ▼2.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.60 ▼5.43
Media Library /wp-admin/upload.php3.23 ▲0.0037.81 ▼0.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WPAdmin Motivation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.69 ▲0.411.79 ▼0.2940.82 ▼5.62
Dashboard /wp-admin2,203 ▲235.61 ▼0.0587.85 ▼13.6047.78 ▲5.72
Posts /wp-admin/edit.php2,105 ▲52.01 ▼0.0341.43 ▲5.4538.36 ▲4.16
Add New Post /wp-admin/post-new.php1,599 ▲7122.21 ▼1.10659.38 ▼8.5839.31 ▼19.04
Media Library /wp-admin/upload.php1,402 ▲24.19 ▲0.0399.20 ▼10.0049.14 ▲2.96

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpadmin-motivation/motivation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% 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
5 plugin tags: quotes, dashboard, inspiration, wpadmin, motivation

wpadmin-motivation/motivation.php 92% from 13 tests

"WPAdmin Motivation" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpadmin-motivation.php" instead of "motivation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2113669

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions3
▷ Named functions3100.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