83% auto-text-typing

Code Review | Melabu WP Auto Text Typing

WordPress plugin Melabu WP Auto Text Typing scored83%from 54 tests.

About plugin

  • Plugin page: auto-text-typing
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.7
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: May 7, 2019
  • Number of updates: 29
  • Update frequency: every 37.4 days
  • Top authors: ProDeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,479 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.09MB] [CPU: ▼4.50ms] Passed 4 tests

Analyzing server-side resources used by Melabu WP Auto Text Typing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.82 ▲3.85
Dashboard /wp-admin3.41 ▲0.0749.37 ▼11.82
Posts /wp-admin/edit.php3.53 ▲0.1746.95 ▼0.96
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.19 ▼8.21
Media Library /wp-admin/upload.php3.33 ▲0.1138.03 ▲2.99
MB ATT /wp-admin/admin.php?page=melibu-plugin-typing-admin3.3134.68
Options /wp-admin/admin.php?page=melibu-plugin-typing-admin-control-menu-13.3335.46
About /wp-admin/admin.php?page=melibu-plugin-typing-admin-control-menu-23.3734.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
melibu-plugin-typing-db-version
melibu-plugin-typing-version
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Melabu WP Auto Text Typing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13714.29 ▼0.072.02 ▲0.3745.16 ▲4.92
Dashboard /wp-admin2,240 ▲635.74 ▲0.0696.78 ▲11.4495.56 ▲50.09
Posts /wp-admin/edit.php2,162 ▲622.33 ▲0.2937.32 ▲1.5534.25 ▼1.44
Add New Post /wp-admin/post-new.php1,734 ▲20522.90 ▼0.31752.68 ▲103.7336.57 ▼14.48
Media Library /wp-admin/upload.php1,451 ▲514.36 ▲0.1097.32 ▲2.3179.27 ▲34.30
MB ATT /wp-admin/admin.php?page=melibu-plugin-typing-admin9381.9725.9545.45
Options /wp-admin/admin.php?page=melibu-plugin-typing-admin-control-menu-11,5172.6445.2458.27
About /wp-admin/admin.php?page=melibu-plugin-typing-admin-control-menu-21,5081.9629.1663.84

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auto-text-typing/html/about.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/auto-text-typing/html/typing/message.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auto-text-typing/html/welcome.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auto-text-typing/html/typing.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (A Preview on Page), #2 (Preview on Text Widget), #3 (Easy Settings Page), #4 (Short code), #5 (Use short code in any text widget.)
The official readme.txt is a good inspiration

auto-text-typing/auto-text-typing.php 92% from 13 tests

The principal PHP file in "Melabu WP Auto Text Typing" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 312 characters long)

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 plugin1,631 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP8181301886
PO File3512964576
JavaScript46237166
CSS3003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.65MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-MB-20.png1.97KB1.16KB▼ 41.49%
img/icon-MB.png18.99KB8.89KB▼ 53.22%
screenshot-3.png100.34KB33.69KB▼ 66.43%
(invalid) screenshot-1.png147.17KB0.00KB▼ 100.00%
screenshot-6.png35.77KB11.98KB▼ 66.51%