10% intelly-posts-footer-manager

Code Review | Posts Footer Manager

WordPress plugin Posts Footer Manager scored 10% from 54 tests.

About plugin

  • Plugin page: intelly-posts-foo...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 31, 2016
  • Latest release: Mar 30, 2023
  • Number of updates: 23
  • Update frequency: every 114.0 days
  • Top authors: IntellyWP (91.3%)data443 (13.04%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,840 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/intelly-posts-footer-manager/includes/classes/utils/Tracking.php+76
    Undefined index: name

Server metrics [RAM: ▲1.79MB] [CPU: ▲13.66ms] Passed 4 tests

A check of server-side resources used by Posts Footer Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.31 ▲1.8564.56 ▲25.24
Dashboard /wp-admin5.13 ▲1.8392.71 ▲43.73
Posts /wp-admin/edit.php5.17 ▲1.8153.20 ▲3.72
Add New Post /wp-admin/post-new.php7.64 ▲1.75107.95 ▲8.61
Media Library /wp-admin/upload.php4.98 ▲1.7548.49 ▲17.05
Posts Footer Manager /wp-admin/options-general.php?page=intelly-posts-footer-manager5.0673.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 194 new files
Database: no new tables, 18 new options
New WordPress options
widget_theysaidso_widget
IPFM_TrackingLastSend[intelly-posts-footer-manager]
IPFM_ParentFooterGroup
IPFM_ShowWhatsNew
IPFM_PluginFirstInstall
IPFM_ShowActivationNotice
IPFM_ArrayFooterElements
IPFM_PluginInstallDate[intelly-posts-footer-manager]
db_upgraded
IPFM_NewFooterItemId_IPFM_FooterGroup
...

Browser metrics Passed 4 tests

Checking browser requirements for Posts Footer Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12813.55 ▼0.748.05 ▲5.7838.26 ▼8.47
Dashboard /wp-admin2,210 ▲195.85 ▲0.9896.99 ▼8.3942.55 ▼4.75
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0336.55 ▲0.7035.39 ▲1.37
Add New Post /wp-admin/post-new.php1,546 ▲1318.02 ▼5.11604.20 ▼59.3550.94 ▼25.88
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0395.05 ▼10.6141.21 ▼9.06
Posts Footer Manager /wp-admin/options-general.php?page=intelly-posts-footer-manager1,6995.97131.60121.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 19 options in the database
    • theysaidso_admin_options
    • IPFM_PluginUpdateDate[intelly-posts-footer-manager]
    • IPFM_NewFooterItemId_IPFM_FooterGroup
    • IPFM_ShowActivationNotice
    • IPFM_Active
    • IPFM_ParentFooterGroup
    • widget_recent-posts
    • widget_theysaidso_widget
    • IPFM_TrackingEnable
    • IPFM_ShowWhatsNew
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/intelly-posts-footer-manager/includes/classes/session/session.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/intelly-posts-footer-manager/includes/core.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/intelly-posts-footer-manager/includes/install.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'IPFM_Recursive_ArrayAccess' not found in wp-content/plugins/intelly-posts-footer-manager/includes/classes/session/class-session.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/intelly-posts-footer-manager/index.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'IPFM_Options' not found in wp-content/plugins/intelly-posts-footer-manager/includes/classes/utils/PluginOptions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/intelly-posts-footer-manager/includes/uninstall.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Choose elements and their order displaying in the group), #2 (Choose the element type-such as WP editor-shortcodes-line separator-and so on), #3 (Group lists-every group is inserted a specific location-such as key pages or specific categories)
You can take inspiration from this readme.txt

intelly-posts-footer-manager/index.php 85% from 13 tests

"Posts Footer Manager" version 2.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("intelly-posts-footer-manager.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin63,476 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code
CSS131132,07531,363
JavaScript614,5512,41220,869
PHP478771,45110,276
Sass121697605
SVG100288
HTML138375

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity56.77
▷ Minimum class complexity1.00
▷ Maximum class complexity617.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes12.86%
Methods556
▷ Static methods101.80%
▷ Public methods49689.21%
▷ Protected methods274.86%
▷ Private methods335.94%
Functions48
▷ Named functions4695.83%
▷ Anonymous functions24.17%
Constants87
▷ Global constants4551.72%
▷ Class constants4248.28%
▷ Public constants42100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.89MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/deps/colorpicker/img/bootstrap-colorpicker/alpha-horizontal.png3.55KB1.62KB▼ 54.44%
assets/deps/colorpicker/img/bootstrap-colorpicker/saturation.png8.61KB5.13KB▼ 40.41%
screenshot-2.png263.12KB75.83KB▼ 71.18%
assets/html/close_1.png1.16KB0.45KB▼ 61.06%
assets/landing/howitworks.png53.11KB15.75KB▼ 70.34%