79% front-end-pm

Code Review | Front End PM

WordPress plugin Front End PM scored79%from 54 tests.

About plugin

  • Plugin page: front-end-pm
  • Plugin version: 11.4.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Oct 9, 2023
  • Number of updates: 300
  • Update frequency: every 11.5 days
  • Top authors: shamim51 (100%)

Code review

54 tests

User reviews

209 reviews

Install metrics

8,000+ active /236,625 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.48MB] [CPU: ▲49.68ms] 75% from 4 tests

This is a short check of server-side resources used by Front End PM
Please fix the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.48MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.90 ▲5.4478.25 ▲39.65
Dashboard /wp-admin8.92 ▲5.57118.80 ▲61.68
Posts /wp-admin/edit.php8.92 ▲5.56112.20 ▲59.93
Add New Post /wp-admin/post-new.php11.24 ▲5.35135.09 ▲37.44
Media Library /wp-admin/upload.php8.92 ▲5.6995.46 ▲62.48
All Attachments /wp-admin/admin.php?page=fep-all-attachments8.9285.92
All Announcements /wp-admin/admin.php?page=fep-all-announcements8.9282.49
Settings /wp-admin/admin.php?page=fep_settings8.9284.76
Edit /wp-admin/admin.php?page=fep-edit8.9280.53
Upgrade  ➤ /wp-admin/admin.php?page=fep-all-messages-pricing8.9279.24
Contact Us /wp-admin/admin.php?page=fep-all-messages-contact8.9286.25
Update /wp-admin/admin.php?page=fep_update8.9283.09
Support Forum /wp-admin/admin.php?page=fep-all-messages-wp-support-forum8.9276.62
All Messages /wp-admin/admin.php?page=fep-all-messages8.9296.05
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius8.9282.03

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 251 new files
Database: 4 new tables, 14 new options
New tables
wp_fep_messages
wp_fep_attachments
wp_fep_participants
wp_fep_messagemeta
New WordPress options
widget_fep_menu_widget
can_compress_scripts
db_upgraded
widget_fep_empty_widget
FEP_admin_options
fs_debug_mode
widget_recent-comments
widget_recent-posts
fs_accounts
fep_db_version
...

Browser metrics Passed 4 tests

Checking browser requirements for Front End PM
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20313.50 ▼0.779.14 ▲7.5641.36 ▼2.62
Dashboard /wp-admin2,246 ▲695.63 ▼0.0684.51 ▼3.0142.07 ▼1.24
Posts /wp-admin/edit.php2,154 ▲542.02 ▲0.0541.35 ▲7.0240.10 ▲5.56
Add New Post /wp-admin/post-new.php1,569 ▲4323.04 ▼0.69647.25 ▼51.5056.13 ▼5.10
Media Library /wp-admin/upload.php1,448 ▲484.12 ▼0.08101.07 ▼0.0245.36 ▼0.85
All Attachments /wp-admin/admin.php?page=fep-all-attachments1,0822.0526.6832.51
All Announcements /wp-admin/admin.php?page=fep-all-announcements1,0482.0825.7229.49
Settings /wp-admin/admin.php?page=fep_settings1,2752.0523.9231.62
Edit /wp-admin/admin.php?page=fep-edit7081.516.5220.19
Upgrade  ➤ /wp-admin/admin.php?page=fep-all-messages-pricing2,5913.4668.06154.65
Contact Us /wp-admin/admin.php?page=fep-all-messages-contact1,5803.1352.3653.38
Update /wp-admin/admin.php?page=fep_update8522.0624.0326.33
Support Forum /wp-admin/admin.php?page=fep-all-messages-wp-support-forum1,7595.16139.9248.52
All Messages /wp-admin/admin.php?page=fep-all-messages1,0752.0526.5331.38
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1151.7123.8731.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_fep_messages
    • wp_fep_messagemeta
    • wp_fep_attachments
    • wp_fep_participants
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • db_upgraded
    • widget_fep_empty_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • FEP_admin_options
    • widget_fep_text_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_active_plugins
    • fep_db_version
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

front-end-pm/front-end-pm.php 92% from 13 tests

The main PHP file in "Front End PM" ver. 11.4.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 320 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin44,951 lines of code in 198 files:
LanguageFilesBlank linesComment linesLines of code
PHP1668,91317,54442,323
JavaScript152332111,722
CSS1611721692
Markdown1680214

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity76.91
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes75
▷ Abstract classes22.67%
▷ Concrete classes7397.33%
▷ Final classes00.00%
Methods1,525
▷ Static methods22114.49%
▷ Public methods1,11573.11%
▷ Protected methods312.03%
▷ Private methods37924.85%
Functions206
▷ Named functions20097.09%
▷ Anonymous functions62.91%
Constants154
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.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
7 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/pro_only.png1.16KB1.22KB0.00%
assets/images/desktop-notification-32.png0.70KB0.71KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/images/avatar-group-60.png2.20KB2.21KB0.00%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%