84% in-field-labels

Code Review | In Field Labels

WordPress plugin In Field Labels scored84%from 54 tests.

About plugin

  • Plugin page: in-field-labels
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Apr 10, 2014
  • Number of updates: 15
  • Update frequency: every 1.5 days
  • Top authors: dipali.dhole27@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.49ms] Passed 4 tests

Analyzing server-side resources used by In Field Labels
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.58 ▼1.49
Dashboard /wp-admin3.32 ▲0.0246.75 ▼0.78
Posts /wp-admin/edit.php3.37 ▲0.0147.21 ▲0.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.24 ▼11.87
Media Library /wp-admin/upload.php3.24 ▲0.0137.86 ▲1.92
In field labels /wp-admin/options-general.php?page=in-field-labels3.2129.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by In Field Labels
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.24 ▼1.352.16 ▲0.1343.11 ▼10.15
Dashboard /wp-admin2,210 ▲225.82 ▲0.7898.51 ▼14.5640.56 ▼5.47
Posts /wp-admin/edit.php2,090 ▼22.03 ▼0.0134.09 ▼7.2030.57 ▼10.92
Add New Post /wp-admin/post-new.php1,541 ▲1323.00 ▲4.81704.77 ▲87.5557.91 ▲2.00
Media Library /wp-admin/upload.php1,389 ▼24.19 ▲0.0395.28 ▼5.7442.85 ▼3.05
In field labels /wp-admin/options-general.php?page=in-field-labels7812.0226.1928.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/in-field-labels/in-field-labels.php:12

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 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Add form id's in the backend separated with comma.), #2 (form looks like in the front end.)
Please take inspiration from this readme.txt

in-field-labels/in-field-labels.php 92% from 13 tests

This is the main PHP file of "In Field Labels" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 156 characters long)

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
Everything looks great! No dangerous files found in this plugin184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23247122
PHP117962

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.18KB14.70KB▼ 41.61%
screenshot-2.png12.02KB7.60KB▼ 36.76%