84% wp-responsive-slab-text

Code Review | WP Responsive Auto Fit Text

WordPress plugin WP Responsive Auto Fit Text scored84%from 54 tests.

About plugin

  • Plugin page: wp-responsive-sla...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 15, 2014
  • Latest release: Aug 15, 2023
  • Number of updates: 27
  • Update frequency: every 118.4 days
  • Top authors: gal_op (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /11,470 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: ▼6.25ms] Passed 4 tests

Server-side resources used by WP Responsive Auto Fit Text
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.92 ▼0.69
Dashboard /wp-admin3.32 ▲0.0244.54 ▼11.20
Posts /wp-admin/edit.php3.37 ▲0.0246.04 ▼3.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.83 ▼8.92
Media Library /wp-admin/upload.php3.24 ▲0.0232.38 ▼1.83

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Responsive Auto Fit Text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲13714.48 ▲0.091.92 ▼0.2642.63 ▼3.97
Dashboard /wp-admin2,276 ▲1025.83 ▲0.93101.05 ▼16.9867.56 ▲22.48
Posts /wp-admin/edit.php2,157 ▲682.14 ▲0.1341.51 ▲4.9235.60 ▲2.70
Add New Post /wp-admin/post-new.php1,582 ▲6523.04 ▲5.55686.34 ▲32.9158.79 ▲8.75
Media Library /wp-admin/upload.php1,451 ▲634.20 ▼0.00101.19 ▲4.2381.51 ▲33.35

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-responsive-slab-text/wp-responsive-fit-text.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: auto fit text, shortcode, slabtext, auto resize text, responsive...

wp-responsive-slab-text/wp-responsive-fit-text.php 85% from 13 tests

The entry point to "WP Responsive Auto Fit Text" version 0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-responsive-slab-text.php" instead of "wp-responsive-fit-text.php")

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
Good job! No executable or dangerous file extensions detected96 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1261079
CSS10016
JavaScript1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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 were not PNG files found in your plugin