90% notwiz-ruby-text

Code Review | NotWiz Ruby Text

WordPress plugin NotWiz Ruby Text scored90%from 54 tests.

About plugin

  • Plugin page: notwiz-ruby-text
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Jun 4, 2019
  • Number of updates: 8
  • Update frequency: every 7.0 days
  • Top authors: kmix39 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by NotWiz Ruby Text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.46 ▼3.42
Dashboard /wp-admin3.34 ▼0.0149.99 ▼14.37
Posts /wp-admin/edit.php3.45 ▲0.0945.73 ▼2.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.77 ▼25.61
Media Library /wp-admin/upload.php3.26 ▲0.0336.59 ▲1.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by NotWiz Ruby Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.60 ▼0.011.86 ▼0.1746.72 ▼0.12
Dashboard /wp-admin2,195 ▲185.67 ▲0.11100.54 ▼0.6441.46 ▼1.28
Posts /wp-admin/edit.php2,082 ▼182.02 ▲0.0134.59 ▼3.0334.07 ▼1.55
Add New Post /wp-admin/post-new.php1,530 ▲423.20 ▲5.57623.51 ▼69.4055.15 ▼0.45
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0899.32 ▲1.8843.43 ▼2.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Input Text.), #2 (Push NotWiz Ruby Text Toolbar Button.), #3 (Input ruby text.), #4 (Enter apply button.), #5 (decoration a ruby text.)
You can look at the official readme.txt

notwiz-ruby-text/notwiz-ruby-text.php Passed 13 tests

The main PHP file in "NotWiz Ruby Text" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
Ruby Text for Block Editor(Gutenberg)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin150 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP42612146
CSS1001
JSON1001
JavaScript1001
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods12
▷ Static methods541.67%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.35MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png179.57KB72.38KB▼ 59.69%
assets/banner-1544x500.png99.03KB55.70KB▼ 43.75%
assets/icon-256x256.png23.64KB10.19KB▼ 56.90%
assets/icon-128x128.png11.25KB5.08KB▼ 54.80%
assets/banner-772x250.png47.48KB22.72KB▼ 52.15%