90% clipart

Code Review | ClipArt

WordPress plugin ClipArt scored90%from 54 tests.

About plugin

  • Plugin page: clipart
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Jan 26, 2016
  • Number of updates: 10
  • Update frequency: every 107.9 days
  • Top authors: takien (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,777 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ClipArt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.17 ▼1.80
Dashboard /wp-admin3.32 ▲0.0251.20 ▼6.95
Posts /wp-admin/edit.php3.37 ▲0.0153.11 ▲0.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.64 ▼1.73
Media Library /wp-admin/upload.php3.24 ▲0.0133.84 ▼2.83
ClipArt Tags /wp-admin/edit-tags.php?taxonomy=clipart_tags&post_type=attachment3.2334.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ClipArt
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.381.96 ▲0.1148.85 ▲1.94
Dashboard /wp-admin2,213 ▲225.85 ▼0.03117.61 ▼2.8948.31 ▲1.03
Posts /wp-admin/edit.php2,096 ▲42.06 ▲0.0239.09 ▼6.7438.35 ▼0.42
Add New Post /wp-admin/post-new.php1,544 ▲3018.70 ▲0.83619.62 ▼142.5850.11 ▼16.75
Media Library /wp-admin/upload.php1,389 ▲44.22 ▲0.1095.47 ▼26.8741.34 ▼10.14
ClipArt Tags /wp-admin/edit-tags.php?taxonomy=clipart_tags&post_type=attachment1,2382.1328.9827.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
7 plugin tags: cliparts, clip arts, picture, open clipart, clip art...

clipart/clipart.php 92% from 13 tests

The principal PHP file in "ClipArt" v. 0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,045 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP48593718
CSS262145
PO File1232399
JavaScript214283

PHP code Passed 2 tests

This is a very shot review 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.41
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/clipart-logo.png5.22KB3.93KB▼ 24.68%
js/clipart-tinymce-button.png6.54KB0.79KB▼ 87.88%
images/checkthis.png1.89KB0.93KB▼ 50.83%