94% diagramart-library

Code Review | DiagramArt Library

WordPress plugin DiagramArt Library scored 94% from 54 tests.

About plugin

  • Plugin page: diagramart-library
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.1
  • WordPress version: 5.8.1
  • First release: Apr 15, 2018
  • Latest release: Jan 16, 2019
  • Number of updates: 2
  • Update frequency: every 121.5 days
  • Top authors: juffalow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 288 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by DiagramArt Library
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0136.22 ▼1.49
Dashboard /wp-admin3.06 ▲0.0150.64 ▼0.56
Posts /wp-admin/edit.php3.11 ▲0.0151.62 ▲4.04
Add New Post /wp-admin/post-new.php5.43 ▼0.0099.72 ▼590.42
Media Library /wp-admin/upload.php3.01 ▼0.0034.53 ▼7.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for DiagramArt Library
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲10316.29 ▲0.3913.30 ▲3.4253.71 ▼0.66
Dashboard /wp-admin2,968 ▲345.90 ▼0.09145.24 ▼23.18125.65 ▲4.00
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0066.44 ▼2.5994.30 ▼1.85
Add New Post /wp-admin/post-new.php1,683 ▼18918.38 ▼0.90370.27 ▼20.82113.57 ▲0.63
Media Library /wp-admin/upload.php1,807 ▲565.04 ▲0.04158.07 ▼12.88121.38 ▼10.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/diagramart-library/wp-diagramart-library.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: diagramart

diagramart-library/wp-diagramart-library.php 92% from 13 tests

The primary PHP file in "DiagramArt Library" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("diagramart-library.php" instead of "wp-diagramart-library.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
Everything looks great! No dangerous files found in this plugin26 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18924
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected