90% asciify

Code Review | Asciify

WordPress plugin Asciify scored90%from 54 tests.

About plugin

  • Plugin page: asciify
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: Apr 6, 2018
  • Number of updates: 16
  • Update frequency: every 64.4 days
  • Top authors: cyclonecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /748 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.04ms] Passed 4 tests

An overview of server-side resources used by Asciify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.67 ▼3.26
Dashboard /wp-admin3.32 ▲0.0243.64 ▼3.69
Posts /wp-admin/edit.php3.44 ▲0.0842.68 ▼1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.34 ▼15.70
Media Library /wp-admin/upload.php3.25 ▲0.0237.09 ▲2.97
Asciify /wp-admin/tools.php?page=asciify3.2129.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Asciify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.72 ▲0.441.58 ▲0.0641.97 ▲1.65
Dashboard /wp-admin2,202 ▲285.62 ▲0.0483.63 ▼16.5735.58 ▼9.04
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0835.78 ▲1.8732.29 ▼4.62
Add New Post /wp-admin/post-new.php1,537 ▲1118.08 ▼5.56611.78 ▼42.4370.58 ▲12.22
Media Library /wp-admin/upload.php1,398 ▲44.16 ▼0.1096.45 ▼5.2841.77 ▼3.49
Asciify /wp-admin/tools.php?page=asciify9412.0021.9328.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | A shallow check that no browser errors were triggered
No browser errors were detected


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
3 plugin tags: attachment, ascii, image

asciify/asciify.php Passed 13 tests

Analyzing the main PHP file in "Asciify" version 1.0.0
49 characters long description:
Creates ascii representation for uploaded images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin664 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity28.50
▷ Minimum class complexity5.00
▷ Maximum class complexity52.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants310.00%
▷ Class constants2790.00%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin