90% wp-edit-homepage

Code Review | WP Edit Homepage

WordPress plugin WP Edit Homepage scored90%from 54 tests.

About plugin

  • Plugin page: wp-edit-homepage
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Sep 28, 2023
  • Number of updates: 16
  • Update frequency: every 71.8 days
  • Top authors: tferry (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /2,263 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by WP Edit Homepage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.30 ▼2.70
Dashboard /wp-admin3.31 ▲0.0147.19 ▼4.81
Posts /wp-admin/edit.php3.36 ▲0.0151.25 ▼1.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.42 ▼13.29
Media Library /wp-admin/upload.php3.23 ▲0.0136.82 ▲0.46

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Edit Homepage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.112.05 ▲0.2641.46 ▼2.14
Dashboard /wp-admin2,206 ▲144.86 ▼0.07106.75 ▼4.7038.45 ▼6.33
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0038.42 ▼0.5035.48 ▼2.19
Add New Post /wp-admin/post-new.php1,534 ▲123.17 ▲0.00689.26 ▲46.7656.02 ▼8.76
Media Library /wp-admin/upload.php1,388 ▲34.24 ▼0.06101.98 ▼0.7247.70 ▲4.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: edit, homepage, admin, page

wp-edit-homepage/wp-edit-homepage.php Passed 13 tests

Analyzing the main PHP file in "WP Edit Homepage" version 1.1
77 characters long description:
A simple WordPress plugin that adds a homepage edit link to the admin sidebar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3299273

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.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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