78% texterify

Code Review | Texterify

WordPress plugin Texterify scored78%from 54 tests.

About plugin

  • Plugin page: texterify
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Nov 24, 2021
  • Number of updates: 6
  • Update frequency: every 5.8 days
  • Top authors: texterify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,671 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.17ms] Passed 4 tests

A check of server-side resources used by Texterify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.34 ▼2.26
Dashboard /wp-admin3.39 ▲0.0448.58 ▼15.12
Posts /wp-admin/edit.php3.51 ▲0.1549.31 ▲0.91
Add New Post /wp-admin/post-new.php6.01 ▲0.1286.78 ▼10.99
Media Library /wp-admin/upload.php3.32 ▲0.0837.86 ▼0.31
Texterify /wp-admin/options-general.php?page=texterify3.2935.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Texterify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.42 ▲0.268.05 ▲6.3641.03 ▼4.77
Dashboard /wp-admin2,221 ▲415.54 ▼0.1684.60 ▼10.5437.70 ▼0.65
Posts /wp-admin/edit.php2,126 ▲231.97 ▼0.0637.17 ▼5.5535.75 ▼1.02
Add New Post /wp-admin/post-new.php1,551 ▲2523.13 ▲0.16697.98 ▲45.7058.23 ▲6.71
Media Library /wp-admin/upload.php1,420 ▲204.14 ▼0.1597.41 ▼13.9343.95 ▼2.34
Texterify /wp-admin/options-general.php?page=texterify8122.0425.8428.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/texterify/public/partials/texterify-public-display.php
    • > /wp-content/plugins/texterify/admin/partials/texterify-admin-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/texterify/includes/class-texterify-rest-controller.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/texterify/includes/class-texterify-loader.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in texterify/assets to your readme.txt
The official readme.txt is a good inspiration

texterify/texterify.php Passed 13 tests

This is the main PHP file of "Texterify" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Exchange your content with Texterify.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected393 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15153569370
CSS33817
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.80
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions13
▷ Named functions430.77%
▷ Anonymous functions969.23%
Constants4
▷ Global constants4100.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