84% meridian-one-features

Code Review | Meridian One Features

WordPress plugin Meridian One Features scored84%from 54 tests.

About plugin

  • Plugin page: meridian-one-feat...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2017
  • Latest release: Apr 6, 2020
  • Number of updates: 10
  • Update frequency: every 89.2 days
  • Top authors: meridianthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼4.56ms] Passed 4 tests

Analyzing server-side resources used by Meridian One Features
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3739.60 ▲0.24
Dashboard /wp-admin3.65 ▲0.3452.59 ▲2.98
Posts /wp-admin/edit.php3.76 ▲0.4050.35 ▼1.52
Add New Post /wp-admin/post-new.php6.23 ▲0.3487.95 ▼17.46
Media Library /wp-admin/upload.php3.57 ▲0.3437.52 ▲0.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 14 new options
New WordPress options
widget_meridian_one_team_member_widget
widget_meridian_one_about_widget
widget_meridian_one_slide_widget
can_compress_scripts
widget_meridian_one_process_widget
widget_recent-posts
widget_meridian_one_contact_info_widget
db_upgraded
widget_recent-comments
widget_meridian_one_testimonial_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Meridian One Features
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼1.051.83 ▲0.0945.36 ▲2.62
Dashboard /wp-admin2,209 ▲215.90 ▲1.0098.26 ▼3.9139.21 ▼3.08
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0237.48 ▼0.5933.72 ▼1.24
Add New Post /wp-admin/post-new.php1,533 ▼623.37 ▲0.18656.70 ▼32.3263.09 ▲6.10
Media Library /wp-admin/upload.php1,385 ▼64.15 ▼0.08100.54 ▼1.9843.26 ▼2.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 14 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_meridian_one_team_member_widget
    • widget_meridian_one_service_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_meridian_one_process_widget
    • theysaidso_admin_options
    • widget_meridian_one_feature_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.testimonial.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.pricing.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.team-member.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.about.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.slide.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.contact-info.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.service.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.process.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meridian-one-features/inc/widgets/widget.feature.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: widget, widgets, admin

meridian-one-features/meridian-one-features.php Passed 13 tests

The main PHP script in "Meridian One Features" version 1.0.2 is automatically included on every request by WordPress
56 characters long description:
Shortcodes and custom post types for Meridian One theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,004 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS363312,273
PHP123583681,036
SVG100655
JavaScript1161040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.11
▷ Minimum class complexity9.00
▷ Maximum class complexity27.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin