78% automatically-wallpaper-changer

Code Review | WallpaperChanger

WordPress plugin WallpaperChanger scored78%from 54 tests.

About plugin

  • Plugin page: automatically-wal...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.5
  • WordPress version: 6.3.1
  • First release: May 18, 2016
  • Latest release: May 18, 2016
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: taniafi786 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.87ms] Passed 4 tests

Analyzing server-side resources used by WallpaperChanger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.67 ▼0.28
Dashboard /wp-admin3.31 ▼0.0442.85 ▼16.57
Posts /wp-admin/edit.php3.36 ▲0.0045.04 ▼5.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.22 ▼33.37
Media Library /wp-admin/upload.php3.23 ▲0.0033.41 ▲1.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WallpaperChanger
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.48 ▲0.101.93 ▲0.2641.23 ▲2.56
Dashboard /wp-admin2,203 ▲154.83 ▼1.0797.13 ▼7.8936.05 ▼7.94
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0039.20 ▲3.1534.70 ▲2.31
Add New Post /wp-admin/post-new.php1,543 ▲1518.47 ▼4.99639.10 ▼39.1457.27 ▼3.51
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0297.11 ▼12.9239.34 ▼5.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/automatically-wallpaper-changer/css/style.css.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatically-wallpaper-changer/WallpaperChanger.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wallpaper changer, wallpaper, background image, server time, image

automatically-wallpaper-changer/WallpaperChanger.php 92% from 13 tests

This is the main PHP file of "WallpaperChanger" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automatically-wallpaper-changer.php" instead of "WallpaperChanger.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin29 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221429

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected