84% asciiplayer

Code Review | asciiplayer

WordPress plugin asciiplayer scored84%from 54 tests.

About plugin

  • Plugin page: asciiplayer
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Apr 30, 2018
  • Number of updates: 11
  • Update frequency: every 41.1 days
  • Top authors: jorgesumle (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,076 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by asciiplayer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.68 ▲3.98
Dashboard /wp-admin3.31 ▲0.0048.55 ▼8.00
Posts /wp-admin/edit.php3.36 ▲0.0049.39 ▼0.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.22 ▼17.20
Media Library /wp-admin/upload.php3.23 ▲0.0040.38 ▲0.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for asciiplayer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲6520.07 ▲5.4151.33 ▲48.8837.79 ▼8.43
Dashboard /wp-admin2,224 ▲215.88 ▲1.0197.76 ▼22.2937.53 ▼12.55
Posts /wp-admin/edit.php2,100 ▲212.01 ▲0.0037.05 ▲0.6737.31 ▲2.19
Add New Post /wp-admin/post-new.php1,546 ▲1023.36 ▲0.21609.86 ▼9.4671.99 ▼1.35
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.10100.64 ▼9.4542.49 ▼3.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/asciiplayer/asciiplayer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

asciiplayer/asciiplayer.php Passed 13 tests

The main PHP file in "asciiplayer" ver. 0.3.1 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
asciinema-player for Wordpress.

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 detected3,699 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1052,558
JavaScript131501,132
PHP14109

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin