74% curved-text

Code Review | Curved Text

WordPress plugin Curved Text scored74%from 54 tests.

About plugin

  • Plugin page: curved-text
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2016
  • Latest release: Jul 14, 2016
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: soniz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,047 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼56.91ms] Passed 4 tests

Server-side resources used by Curved Text
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.424.17 ▼40.07
Dashboard /wp-admin2.07 ▼1.245.63 ▼47.15
Posts /wp-admin/edit.php2.07 ▼1.294.82 ▼48.52
Add New Post /wp-admin/post-new.php2.07 ▼3.828.07 ▼91.91
Media Library /wp-admin/upload.php2.07 ▼1.165.43 ▼33.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Curved Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.25 ▼1.041.97 ▲0.0946.35 ▼2.99
Dashboard /wp-admin2,221 ▲274.87 ▼0.0298.14 ▼11.5938.12 ▼6.84
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0536.88 ▼1.7035.92 ▼4.57
Add New Post /wp-admin/post-new.php1,540 ▼1423.38 ▲5.20647.84 ▼13.3660.98 ▲4.43
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.02100.92 ▼21.5742.79 ▼7.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the arctext-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/curved-text/curved-text.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: arctext, curved text, circle text

curved-text/curved-text.php Passed 13 tests

The main file in "Curved Text" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
A very simple shortcode series to create a curved text in Wordpress using Arctext.js

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin253 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211163229
PHP19824

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
There are no PNG files in this plugin