84% meteorite-extensions

Code Review | Meteorite Extensions

WordPress plugin Meteorite Extensions scored84%from 54 tests.

About plugin

  • Plugin page: meteorite-extensions
  • Plugin version: 1.10.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Oct 29, 2023
  • Number of updates: 17
  • Update frequency: every 142.2 days
  • Top authors: terrathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /9,900 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 gracefully, with no errors

Server metrics [RAM: ▲1.46MB] [CPU: ▲2.54ms] Passed 4 tests

An overview of server-side resources used by Meteorite Extensions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.96 ▲1.4946.58 ▲4.19
Dashboard /wp-admin4.79 ▲1.4952.28 ▲2.78
Posts /wp-admin/edit.php4.85 ▲1.4976.84 ▲31.78
Add New Post /wp-admin/post-new.php7.32 ▲1.4484.95 ▼7.90
Media Library /wp-admin/upload.php4.64 ▲1.4142.14 ▲11.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 26 new options
New WordPress options
widget_meteorite_video_widget
db_upgraded
widget_meteorite_buttons
widget_meteorite_pricing_table
widget_meteorite_facts
widget_meteorite_tabs
widget_meteorite_skills
widget_meteorite_text_with_icon
widget_theysaidso_widget
widget_meteorite_employees
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Meteorite Extensions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲17814.46 ▲0.101.67 ▼0.4742.58 ▼2.88
Dashboard /wp-admin2,342 ▲1626.13 ▲0.59124.35 ▲32.0440.96 ▲0.80
Posts /wp-admin/edit.php2,276 ▲1733.40 ▲1.3656.31 ▲19.3337.45 ▲0.97
Add New Post /wp-admin/post-new.php6,402 ▲4,86725.80 ▲7.58854.72 ▲213.8345.34 ▼18.01
Media Library /wp-admin/upload.php1,413 ▲134.18 ▲0.0182.02 ▼22.4442.44 ▼2.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 26 options in the database
    • widget_meteorite_action
    • widget_meteorite_video_widget
    • widget_meteorite_pricing_table
    • widget_meteorite_projects_carousel
    • widget_theysaidso_widget
    • widget_meteorite_employees
    • widget_meteorite_testimonials
    • db_upgraded
    • widget_recent-comments
    • widget_meteorite_latest_news
    • ...

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 | 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
  • 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-testimonials.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-clients.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-facts.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-contact-info.php:8
    • > PHP Warning
      require_once(ME_DIRinc/widgets/widget-buttons.php): failed to open stream: No such file or directory in wp-content/plugins/meteorite-extensions/inc/widgets/loader.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-projects-carousel.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-latest-news-carousel.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-projects.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteorite-extensions/inc/widgets/widget-social-media.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meteorite-extensions/inc/customizer.php:111

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
2 plugin tags: meteorite, extensions

meteorite-extensions/meteorite-extensions.php 85% from 13 tests

The main PHP script in "Meteorite Extensions" version 1.10.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected27,125 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
XML51328017,954
PHP307652967,146
CSS293161,701
JavaScript36443324

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity44.80
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity11.33
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods106
▷ Static methods10.94%
▷ Public methods106100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin