90% materializor

Code Review | Materializor

WordPress plugin Materializor scored90%from 54 tests.

About plugin

  • Plugin page: materializor
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: Sep 25, 2022
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: runcoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /232 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Materializor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.34 ▼7.67
Dashboard /wp-admin3.37 ▲0.0649.41 ▼7.81
Posts /wp-admin/edit.php3.48 ▲0.1251.12 ▲0.85
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.50 ▼6.58
Media Library /wp-admin/upload.php3.29 ▲0.0641.75 ▲3.92

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Materializor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.35 ▲0.001.80 ▼0.3444.49 ▼5.03
Dashboard /wp-admin2,209 ▲325.62 ▲0.0489.17 ▼14.7438.40 ▼9.69
Posts /wp-admin/edit.php2,117 ▲202.02 ▲0.0735.45 ▼2.2033.47 ▼5.97
Add New Post /wp-admin/post-new.php1,540 ▲1423.14 ▼0.45704.55 ▲9.5352.09 ▼7.57
Media Library /wp-admin/upload.php1,417 ▲204.15 ▲0.02111.10 ▼3.9548.65 ▼2.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: material design, blocks, elementor, google, ui

materializor/materializor.php Passed 13 tests

This is the main PHP file of "Materializor" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Adds Material Design widgets and icons to your Elementor website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin27,996 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
CSS97,12511321,426
PHP247197285,084
JavaScript142821581,452
Markdown28034

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.74
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes38
▷ Abstract classes25.26%
▷ Concrete classes3694.74%
▷ Final classes1850.00%
Methods268
▷ Static methods4014.93%
▷ Public methods18669.40%
▷ Protected methods7628.36%
▷ Private methods62.24%
Functions50
▷ Named functions4692.00%
▷ Anonymous functions48.00%
Constants54
▷ Global constants4277.78%
▷ Class constants1222.22%
▷ Public constants12100.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