84% acf-meio-mask-field

Code Review | ACF Meio Mask Field

WordPress plugin ACF Meio Mask Field scored84%from 54 tests.

About plugin

  • Plugin page: acf-meio-mask-field
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Sep 20, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: casepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,466 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
Installer ran successfully

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

Server-side resources used by ACF Meio Mask Field
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.71 ▼1.57
Dashboard /wp-admin3.31 ▼0.0448.39 ▼18.66
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▼8.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.16 ▼24.21
Media Library /wp-admin/upload.php3.23 ▲0.0039.89 ▲1.61

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Meio Mask Field
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.231.96 ▲0.0645.43 ▲4.11
Dashboard /wp-admin2,192 ▲155.49 ▼0.0991.29 ▼5.1239.60 ▼1.36
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0134.50 ▼6.3434.57 ▼3.04
Add New Post /wp-admin/post-new.php1,528 ▲223.04 ▲0.10669.70 ▲19.8154.95 ▼10.33
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.0196.25 ▼11.6446.63 ▲0.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-meio-mask-field/acf_meio_mask_field.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-meio-mask-field/acf_meio_mask.php:10

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

readme.txt 94% 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 need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png - shows active state of the like button.) image required
The official readme.txt might help

acf-meio-mask-field/acf_meio_mask.php 92% from 13 tests

The entry point to "ACF Meio Mask Field" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-meio-mask-field.php" instead of "acf_meio_mask.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin781 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2116113532
PHP23861190
PO File1202056
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.73KB13.99KB▼ 59.73%