89% ascii-art-yaruo

Code Review | Ascii Art Yaruo

WordPress plugin Ascii Art Yaruo scored89%from 54 tests.

About plugin

  • Plugin page: ascii-art-yaruo
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.2.2
  • WordPress version: 6.3.1
  • First release: Dec 22, 2016
  • Latest release: Jun 25, 2019
  • Number of updates: 19
  • Update frequency: every 48.1 days
  • Top authors: tgkzkzk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Ascii Art Yaruo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.83 ▼3.41
Dashboard /wp-admin3.32 ▼0.0349.67 ▼10.90
Posts /wp-admin/edit.php3.37 ▲0.0145.74 ▼11.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.29 ▼27.08
Media Library /wp-admin/upload.php3.25 ▲0.0136.16 ▲0.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,175 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ascii Art Yaruo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.37 ▼0.001.89 ▼0.0241.79 ▼5.84
Dashboard /wp-admin2,195 ▲185.56 ▼0.1490.39 ▲4.5043.73 ▼1.10
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0634.66 ▼9.5838.97 ▼0.40
Add New Post /wp-admin/post-new.php1,545 ▲923.41 ▲0.24699.57 ▲44.3360.64 ▲11.55
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.0794.61 ▼3.3944.09 ▲1.34

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: short code

ascii-art-yaruo/aayarup.php 85% from 13 tests

The main PHP script in "Ascii Art Yaruo" version 1.0.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ascii-art-yaruo.php" instead of "aayarup.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected2,592 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
HTML40202,358
PHP2231589
CSS19086
Perl117659

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected