74% followize

Code Review | Followize

WordPress plugin Followize scored74%from 54 tests.

About plugin

  • Plugin page: followize
  • Plugin version: 0.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Jul 12, 2023
  • Number of updates: 43
  • Update frequency: every 63.2 days
  • Top authors: followize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,070 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.62MB] [CPU: ▼1.03ms] Passed 4 tests

Analyzing server-side resources used by Followize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6239.41 ▼1.91
Dashboard /wp-admin3.92 ▲0.6247.91 ▲4.37
Posts /wp-admin/edit.php3.97 ▲0.6247.63 ▲8.29
Add New Post /wp-admin/post-new.php6.50 ▲0.6182.91 ▼13.56
Media Library /wp-admin/upload.php3.85 ▲0.6239.42 ▲6.99
Adicionando/Editando Formulário /wp-admin/admin.php?page=followize-page-form3.8545.66
Formulários /wp-admin/admin.php?page=followize-page3.8234.96
Configurações /wp-admin/admin.php?page=followize-config3.8133.28

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 71 new files
Database: 3 new tables, 7 new options
New tables
wp_followize_form_fields
wp_followize_form
wp_followize_fields
New WordPress options
widget_theysaidso_widget
widget_followize-form
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Followize
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲24613.63 ▼0.9812.92 ▲10.8644.77 ▼0.30
Dashboard /wp-admin2,327 ▲1505.70 ▲0.1082.60 ▼2.6940.33 ▲4.58
Posts /wp-admin/edit.php2,229 ▲1262.03 ▲0.0738.22 ▼6.2633.56 ▼3.60
Add New Post /wp-admin/post-new.php1,559 ▲2023.28 ▲4.73662.97 ▲46.9751.92 ▼14.76
Media Library /wp-admin/upload.php1,526 ▲1294.23 ▲0.0893.78 ▼6.4041.91 ▼0.09
Adicionando/Editando Formulário /wp-admin/admin.php?page=followize-page-form2,5352.4452.3745.99
Formulários /wp-admin/admin.php?page=followize-page1,0312.1327.2226.24
Configurações /wp-admin/admin.php?page=followize-config1,0012.2023.5130.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_followize_form_fields
    • wp_followize_form
    • wp_followize_fields
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_followize-form
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 53 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=followize-page-form
    • > Notice in wp-content/plugins/followize/Model/form-field.php+146
    Undefined property: Followize\Field::$value

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Tela de configuração do plugin), #2 (Listagem dos formulários cadastrados), #3 (Edição de um formulário cadastrado)
The official readme.txt is a good inspiration

followize/followize.php 92% from 13 tests

This is the main PHP file of "Followize" version 0.7.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 397 characters long)

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
Everything looks great! No dangerous files found in this plugin5,297 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP196005503,294
JavaScript223632551,984
JSON10019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.76
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes00.00%
Methods210
▷ Static methods6832.38%
▷ Public methods15975.71%
▷ Protected methods2110.00%
▷ Private methods3014.29%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.14MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png11.30KB11.47KB0.00%
screenshot-1.png27.76KB28.73KB0.00%
screenshot-3.png99.63KB99.56KB0.07%