90% illustrations

Code Review | Illustrations Block - 300+ Customizable SVG Images

WordPress plugin Illustrations Block - 300+ Customizable SVG Images scored 90% from 54 tests.

About plugin

  • Plugin page: illustrations
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.4
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Jan 7, 2020
  • Number of updates: 11
  • Update frequency: every 35.0 days
  • Top authors: acosmin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

70+ active / 3,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.90ms] Passed 4 tests

An overview of server-side resources used by Illustrations Block - 300+ Customizable SVG Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.33 ▼8.84
Dashboard /wp-admin3.31 ▲0.0144.81 ▼4.47
Posts /wp-admin/edit.php3.36 ▲0.0049.32 ▲3.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.61 ▼8.15
Media Library /wp-admin/upload.php3.23 ▲0.0035.44 ▼2.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 378 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Illustrations Block - 300+ Customizable SVG Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.26 ▼1.051.84 ▲0.0747.25 ▼2.06
Dashboard /wp-admin2,206 ▲155.90 ▲1.01106.40 ▲3.5240.77 ▼6.70
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0140.65 ▲4.1234.74 ▲1.68
Add New Post /wp-admin/post-new.php6,425 ▲4,89523.88 ▲5.63915.41 ▲308.8368.66 ▲17.39
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.0597.92 ▼5.6645.58 ▲2.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
There were no plugin tags found

illustrations/illustrations.php Passed 13 tests

"Illustrations Block - 300+ Customizable SVG Images" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Illustrations Block, easy to customize SVGs from within the Editor

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 plugin590 lines of code in 376 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript370036375
PHP463109213
CSS2202

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin