74% dl-material-admin-theme

Code Review | DL Material Admin Theme

WordPress plugin DL Material Admin Theme scored74%from 54 tests.

About plugin

  • Plugin page: dl-material-admin...
  • Plugin version: 0.1 beta...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Sep 26, 2016
  • Number of updates: 5
  • Update frequency: every 64.0 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /670 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼35.21ms] Passed 4 tests

A check of server-side resources used by DL Material Admin Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0137.16 ▼4.51
Dashboard /wp-admin3.07 ▼0.2725.03 ▼31.02
Posts /wp-admin/edit.php3.07 ▼0.3328.82 ▼22.40
Add New Post /wp-admin/post-new.php3.07 ▼2.8627.08 ▼78.82
Media Library /wp-admin/upload.php3.07 ▼0.2027.05 ▼8.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DL Material Admin Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.16 ▼0.421.77 ▼0.0449.01 ▲0.58
Dashboard /wp-admin2,195 ▲185.58 ▲0.0288.12 ▼8.2440.02 ▲0.41
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0040.00 ▲1.0736.42 ▼2.47
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.59659.64 ▲26.1862.61 ▲15.53
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0397.57 ▼9.2639.88 ▼5.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/dl-material-admin-theme/dl-material-admin-theme.php+20
    Undefined variable: dir
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dl-material-admin-theme/dl-material-admin-theme.php:13

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: admin theme, dl, material design

dl-material-admin-theme/dl-material-admin-theme.php 85% from 13 tests

This is the main PHP file of "DL Material Admin Theme" version 0.1 beta..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "0.1 beta...")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin525 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS110621503
PHP1111122

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin