84% marie-theme-front-page

Code Review | Marie Theme Front Page

WordPress plugin Marie Theme Front Page scored 84% from 54 tests.

About plugin

  • Plugin page: marie-theme-front...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: May 12, 2022
  • Latest release: May 12, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: marieoh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Marie Theme Front Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.27 ▲3.97
Dashboard /wp-admin3.31 ▲0.0146.50 ▼5.46
Posts /wp-admin/edit.php3.36 ▲0.0143.42 ▼3.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.23 ▼11.50
Media Library /wp-admin/upload.php3.23 ▲0.0035.57 ▲3.06

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

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

Browser metrics Passed 4 tests

Marie Theme Front Page: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.201.79 ▼0.0939.11 ▼8.22
Dashboard /wp-admin2,206 ▲185.86 ▲0.94100.09 ▼5.0236.65 ▼5.89
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0033.33 ▼3.3234.07 ▲0.39
Add New Post /wp-admin/post-new.php1,534 ▲1223.34 ▲0.08568.08 ▼93.4652.74 ▲1.67
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0195.19 ▼4.3942.90 ▼4.69

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/marie-tfp-frontpage.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/marie-frontpage-widget-two.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/marie-theme-front-page/inc/Widgets/CompanyDets.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/features.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/marie-frontpage-widget-three.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/marie-theme-front-page/inc/Widgets/Address.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/funders.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/about.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/a11y.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/heroine-alt.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
No tags were detected

marie-theme-front-page/marie-tfp.php 92% from 13 tests

"Marie Theme Front Page" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("marie-theme-front-page.php" instead of "marie-tfp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,312 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP385327001,911
Sass52910304
JSON10066
JavaScript22130
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods82
▷ Static methods2125.61%
▷ Public methods7895.12%
▷ Protected methods00.00%
▷ Private methods44.88%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin