83% material-design-iconic-font-integration

Code Review | Material Design Iconic Font Integration

WordPress plugin Material Design Iconic Font Integration scored 83% from 54 tests.

About plugin

  • Plugin page: material-design-i...
  • Plugin version: 2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: May 5, 2016
  • Number of updates: 8
  • Update frequency: every 26.1 days
  • Top authors: mcostales84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.54ms] Passed 4 tests

This is a short check of server-side resources used by Material Design Iconic Font Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.67 ▼2.08
Dashboard /wp-admin3.31 ▲0.0145.85 ▼1.71
Posts /wp-admin/edit.php3.36 ▲0.0047.73 ▲1.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.37 ▲2.46
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▲0.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Material Design Iconic Font Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.17 ▼1.121.65 ▼0.8941.14 ▼1.18
Dashboard /wp-admin2,206 ▲145.89 ▲0.76107.43 ▲2.0540.02 ▲1.54
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0640.25 ▲6.3034.25 ▼0.54
Add New Post /wp-admin/post-new.php1,536 ▲323.44 ▲0.29597.84 ▼88.6748.41 ▼2.21
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0294.12 ▼9.3842.67 ▼3.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/material-design-iconic-font-integration/md-iconic-font-integration.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: md iconic font, material design, md font, material design font, icon...

material-design-iconic-font-integration/md-iconic-font-integration.php 77% from 13 tests

The primary PHP file in "Material Design Iconic Font Integration" version 2... is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2...")
  • Description: The description should be shorter than 140 characters (currently 179 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("material-design-iconic-font-integration.php" instead of "md-iconic-font-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161924
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.91
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin