90% identic-canvas

Code Review | Identic canvas

WordPress plugin Identic canvas scored90%from 54 tests.

About plugin

  • Plugin page: identic-canvas
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2021
  • Latest release: Feb 9, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: brahmnan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Identic canvas
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.51 ▼4.46
Dashboard /wp-admin3.31 ▲0.0144.72 ▼6.85
Posts /wp-admin/edit.php3.36 ▲0.0146.41 ▲0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.45 ▼3.75
Media Library /wp-admin/upload.php3.24 ▲0.0136.66 ▲3.56

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

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

Browser metrics Passed 4 tests

Identic canvas: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15913.67 ▼0.725.90 ▲4.0840.41 ▼3.25
Dashboard /wp-admin2,211 ▲234.90 ▲0.04110.35 ▼17.1843.84 ▼2.82
Posts /wp-admin/edit.php2,097 ▲52.18 ▲0.1439.41 ▲4.6735.31 ▲3.62
Add New Post /wp-admin/post-new.php1,527 ▼118.24 ▼0.01596.94 ▼23.4355.04 ▼4.41
Media Library /wp-admin/upload.php1,396 ▲144.31 ▲0.0897.59 ▼5.9440.87 ▼2.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: user, avatar, canvas

identic-canvas/identic-canvas.php Passed 13 tests

This is the main PHP file of "Identic canvas" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
This plugin creates user avatars in canvas format using their email

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin292 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12728194
PHP1201378
CSS11020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin