83% fitvidsjs-fittextjs-and-letteringjs-3-in-1

Code Review | FitVids, FitText and Lettering (Oh My!)

WordPress plugin FitVids, FitText and Lettering (Oh My!) scored83%from 54 tests.

About plugin

  • Plugin page: fitvidsjs-fittext...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 29, 2012
  • Latest release: Nov 29, 2012
  • Number of updates: 4
  • Update frequency: every 60.3 days
  • Top authors: rfair404 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by FitVids, FitText and Lettering (Oh My!)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.17 ▼0.54
Dashboard /wp-admin3.33 ▲0.0347.87 ▼0.72
Posts /wp-admin/edit.php3.38 ▲0.0348.13 ▼0.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.50 ▼6.44
Media Library /wp-admin/upload.php3.25 ▲0.0240.74 ▲3.09
FitVids, FitText and Lettering (Oh My) /wp-admin/options-general.php?page=js3n1_plugin_options3.2232.68

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
js3n1_options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

FitVids, FitText and Lettering (Oh My!): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.401.83 ▲0.0540.83 ▼1.45
Dashboard /wp-admin2,202 ▲225.62 ▲0.0192.70 ▲0.0741.53 ▲2.61
Posts /wp-admin/edit.php2,104 ▲72.00 ▲0.0139.26 ▲3.5935.07 ▲5.06
Add New Post /wp-admin/post-new.php1,529 ▼823.64 ▲5.31652.40 ▲7.1755.44 ▼18.78
Media Library /wp-admin/upload.php1,395 ▼84.14 ▼0.1198.10 ▲2.2943.92 ▲1.14
FitVids, FitText and Lettering (Oh My) /wp-admin/options-general.php?page=js3n1_plugin_options1,1352.0525.4029.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • js3n1_options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/fitvidsjs-fittextjs-and-letteringjs-3-in-1/fit-3-in-1.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/fitvidsjs-fittextjs-and-letteringjs-3-in-1/fit-3-in-1.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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 require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of FitVids), #2 (An Example off FitText), #3 (An Example of Lettering)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === fitvidsjs-fittextjs-and-letteringjs-3-in-1 === )
You can look at the official readme.txt

fitvidsjs-fittextjs-and-letteringjs-3-in-1/fit-3-in-1.php 92% from 13 tests

The main PHP script in "FitVids, FitText and Lettering (Oh My!)" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fitvidsjs-fittextjs-and-letteringjs-3-in-1.php" instead of "fit-3-in-1.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected481 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1158182366
JavaScript33340115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods522.73%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin