84% feature-on-homepage

Code Review | Feature On Homepage

WordPress plugin Feature On Homepage scored 84% from 54 tests.

About plugin

  • Plugin page: feature-on-homepage
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Oct 24, 2014
  • Latest release: Oct 24, 2014
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: themattroyal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.66MB] [CPU: ▼23.06ms] Passed 4 tests

A check of server-side resources used by Feature On Homepage
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.60 ▼8.04
Dashboard /wp-admin3.35 ▲0.0463.78 ▲1.05
Posts /wp-admin/edit.php3.40 ▲0.0442.79 ▼9.80
Add New Post /wp-admin/post-new.php3.13 ▼2.7536.28 ▼74.32
Media Library /wp-admin/upload.php3.27 ▲0.0434.66 ▼0.09

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

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

Browser metrics Passed 4 tests

Feature On Homepage: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3714.22 ▲0.231.81 ▼0.0646.64 ▼0.10
Dashboard /wp-admin2,209 ▲216.01 ▲1.15144.23 ▲9.1055.94 ▲11.77
Posts /wp-admin/edit.php2,095 ▲61.98 ▼0.0739.59 ▼4.5040.24 ▼4.05
Add New Post /wp-admin/post-new.php8,505 ▲7,09220.04 ▲2.061,030.89 ▲378.7487.21 ▲25.75
Media Library /wp-admin/upload.php1,397 ▲94.24 ▲0.09110.62 ▼7.5353.66 ▼1.39

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-on-homepage/includes/metabox.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feature-on-homepage/includes/shortcode.php:95

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: homepage, featured

feature-on-homepage/feature-on-homepage.php 92% from 13 tests

The main PHP script in "Feature On Homepage" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)

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
No dangerous file extensions were detected1,865 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1691,680
PHP49749180
Markdown1305

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions11
▷ Named functions11100.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
There were not PNG files found in your plugin