84% get-different-front-page

Code Review | GET Different Front Page

WordPress plugin GET Different Front Page scored84%from 54 tests.

About plugin

  • Plugin page: get-different-fro...
  • Plugin version: 0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 10, 2014
  • Latest release: Dec 7, 2015
  • Number of updates: 10
  • Update frequency: every 60.8 days
  • Top authors: theode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,245 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.15MB] [CPU: ▼7.14ms] Passed 4 tests

This is a short check of server-side resources used by GET Different Front Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6320.34 ▼19.83
Dashboard /wp-admin3.31 ▲0.0048.49 ▲0.88
Posts /wp-admin/edit.php3.44 ▲0.0865.32 ▲15.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.58 ▼8.72
Media Library /wp-admin/upload.php3.23 ▲0.0033.12 ▼0.90

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by GET Different Front Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.77 ▼0.1142.06 ▼3.87
Dashboard /wp-admin2,195 ▲185.63 ▲0.0385.87 ▼7.7742.94 ▲2.41
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0235.27 ▼5.1835.15 ▲0.14
Add New Post /wp-admin/post-new.php1,531 ▲223.05 ▼0.22675.06 ▼34.1762.08 ▲7.19
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.1398.53 ▼10.5142.95 ▼5.36

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 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/get-different-front-page/GET-Different-Front-Page.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: page, home, custom, front

get-different-front-page/GET-Different-Front-Page.php 92% from 13 tests

The main file in "GET Different Front Page" v. 0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-different-front-page.php" instead of "GET-Different-Front-Page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201722

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin