10% meteor-slides

Code Review | Meteor Slides

WordPress plugin Meteor Slides scored10%from 54 tests.

About plugin

  • Plugin page: meteor-slides
  • Plugin version: 1.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2010
  • Latest release: Jan 16, 2023
  • Number of updates: 75
  • Update frequency: every 61.3 days
  • Top authors: jleuze (100%)

Code review

54 tests

User reviews

129 reviews

Install metrics

20,000+ active /660,132 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/meteor-slides/meteor-slides-plugin.php+324
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.69ms] Passed 4 tests

A check of server-side resources used by Meteor Slides
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.50 ▲1.26
Dashboard /wp-admin3.37 ▲0.0748.60 ▼0.46
Posts /wp-admin/edit.php3.48 ▲0.1343.54 ▼3.15
Add New Post /wp-admin/post-new.php5.95 ▲0.0779.54 ▼16.42
Media Library /wp-admin/upload.php3.29 ▲0.0633.98 ▲2.12
Slides /wp-admin/edit.php?post_type=slide3.3435.83
Add New /wp-admin/post-new.php?post_type=slide3.3742.99
Slideshows /wp-admin/edit-tags.php?taxonomy=slideshow&post_type=slide3.2934.66
Settings /wp-admin/edit.php?post_type=slide&page=slides_settings3.3430.15

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 83 new files
Database: no new tables, 8 new options
New WordPress options
widget_meteor-slides-widget
db_upgraded
widget_recent-comments
meteorslides_options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Meteor Slides
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲20913.65 ▼0.919.95 ▲8.3045.25 ▲1.25
Dashboard /wp-admin2,241 ▲535.79 ▼0.1198.17 ▼10.9538.23 ▼0.58
Posts /wp-admin/edit.php2,124 ▲322.04 ▲0.0534.37 ▼7.0133.24 ▼1.03
Add New Post /wp-admin/post-new.php1,563 ▲4923.31 ▲5.73677.11 ▲42.4654.54 ▲3.55
Media Library /wp-admin/upload.php1,420 ▲324.20 ▼0.2196.34 ▼1.3839.64 ▼1.08
Slides /wp-admin/edit.php?post_type=slide1,1381.9330.4926.26
Add New /wp-admin/post-new.php?post_type=slide1,7693.6766.6429.77
Slideshows /wp-admin/edit-tags.php?taxonomy=slideshow&post_type=slide1,3522.1425.7927.31
Settings /wp-admin/edit.php?post_type=slide&page=slides_settings1,1692.0623.0930.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_meteor-slides-widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meteor-slides/meteor-slides-plugin.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/meteor-slides/includes/meteor-slides-admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/meteor-slides/includes/meteor-slides-settings.php:170
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/meteor-slides/includes/meteor-slideshow.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meteor-slides/includes/meteor-slides-widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Slideshow Preview), #2 (New Slide Page), #3 (Edit Slide Page), #4 (Slides Column View), #5 (Manage Slideshows), #6 (Meteor Slides Settings), #7 (Meteor Slides Widget)
Please take inspiration from this readme.txt

meteor-slides/meteor-slides-plugin.php 92% from 13 tests

The primary PHP file in "Meteor Slides" version 1.5.7 is used by WordPress to initiate all plugin functionality
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 ("meteor-slides.php" instead of "meteor-slides-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,423 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File272,4633,3805,868
JavaScript41552171,477
PHP658878868
CSS21118185
Markdown113025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/buttons.png0.28KB0.18KB▼ 33.22%
images/next.png0.89KB0.69KB▼ 22.92%
images/prev.png0.88KB0.69KB▼ 21.49%