78% whats-new-genarator

Code Review | What's New Generator

WordPress plugin What's New Generator scored 78% from 54 tests.

About plugin

  • Plugin page: whats-new-genarator
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 26, 2012
  • Latest release: Dec 26, 2017
  • Number of updates: 43
  • Update frequency: every 42.5 days
  • Top authors: hidaka.bizplugin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40,000+ active / 180,975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.21ms] Passed 4 tests

Server-side resources used by What's New Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.80 ▲2.11
Dashboard /wp-admin3.38 ▲0.0749.81 ▲0.48
Posts /wp-admin/edit.php3.49 ▲0.1350.02 ▲4.19
Add New Post /wp-admin/post-new.php5.96 ▲0.07100.84 ▼4.01
Media Library /wp-admin/upload.php3.30 ▲0.0740.40 ▲0.60
What's New 設定 /wp-admin/options-general.php?page=whats-new-genarator/whats-new-generator.php3.2846.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by What's New Generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5114.48 ▲0.121.60 ▼0.6044.31 ▼2.96
Dashboard /wp-admin2,212 ▲245.76 ▲0.86109.44 ▼3.1649.22 ▲3.34
Posts /wp-admin/edit.php2,092 ▲31.99 ▲0.0040.63 ▲3.8544.57 ▲9.43
Add New Post /wp-admin/post-new.php1,533 ▲12223.13 ▲5.05677.05 ▼176.6959.76 ▼1.54
Media Library /wp-admin/upload.php1,394 ▲64.13 ▼0.06110.28 ▼6.9052.15 ▲1.26
What's New 設定 /wp-admin/options-general.php?page=whats-new-genarator/whats-new-generator.php9472.0734.85117.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • whats_new_options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/whats-new-genarator/whatsnew-view.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/whats-new-genarator/admin-view.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/whats-new-genarator/whats-new-generator.php:46
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 7
    • > PHP Notice
      Trying to get property 'title' of non-object in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 2
    • > PHP Notice
      Undefined variable: info in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 7
    • > PHP Notice
      Undefined variable: info in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/whats-new-genarator/admin-view.php:12
    • > PHP Notice
      Trying to get property 'items' of non-object in wp-content/plugins/whats-new-genarator/whatsnew-view.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt might help

whats-new-genarator/whats-new-generator.php 92% from 13 tests

The principal PHP file in "What's New Generator" v. 2.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("whats-new-genarator.php" instead of "whats-new-generator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin336 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4389277
CSS18059

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.27
Average class complexity8.20
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods414.29%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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