84% matrix-pre-loader

Code Review | Preloader Matrix

WordPress plugin Preloader Matrix scored84%from 54 tests.

About plugin

  • Plugin page: matrix-pre-loader
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Jun 19, 2023
  • Number of updates: 25
  • Update frequency: every 46.3 days
  • Top authors: pyrobd (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.32ms] Passed 4 tests

An overview of server-side resources used by Preloader Matrix
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.63 ▼3.66
Dashboard /wp-admin3.41 ▲0.1052.81 ▲1.50
Posts /wp-admin/edit.php3.53 ▲0.1756.15 ▲5.52
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.57 ▼13.76
Media Library /wp-admin/upload.php3.31 ▲0.0839.47 ▲2.66
Preloader Matrix /wp-admin/options-general.php?page=matrixpreloader3.3135.38

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
matrix_pre_loader_option2
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Preloader Matrix
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,179 ▲43314.90 ▲0.5412.55 ▲10.8245.22 ▲2.52
Dashboard /wp-admin2,339 ▲1596.17 ▲0.57116.56 ▲20.7038.39 ▼0.62
Posts /wp-admin/edit.php2,261 ▲1643.27 ▲1.2755.46 ▲15.5535.24 ▼2.79
Add New Post /wp-admin/post-new.php1,529 ▲123.16 ▲0.02679.99 ▼4.0937.53 ▼28.76
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0694.98 ▼9.3947.78 ▲2.28
Preloader Matrix /wp-admin/options-general.php?page=matrixpreloader3,35910.86226.6770.31

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
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • matrix_pre_loader_option2
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/matrix-pre-loader/includes/Classes/Menu.php
    • > /wp-content/plugins/matrix-pre-loader/matrix-loader.php
    • > /wp-content/plugins/matrix-pre-loader/includes/Classes/AdminAjaxHandler.php
    • > /wp-content/plugins/matrix-pre-loader/includes/Classes/Activator.php
    • > /wp-content/plugins/matrix-pre-loader/includes/Classes/AdminApp.php
    • > /wp-content/plugins/matrix-pre-loader/includes/Classes/LoaderController.php
    • > /wp-content/plugins/matrix-pre-loader/includes/Classes/Bootstrap.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

matrix-pre-loader/matrix-loader.php 92% from 13 tests

The principal PHP file in "Preloader Matrix" v. 2.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("matrix-pre-loader.php" instead of "matrix-loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,401 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP10155101631
SVG15010465
JavaScript66523267
CSS451131
JSON1007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity19.50
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2284.62%
▷ Protected methods311.54%
▷ Private methods13.85%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin