10% web4pro-about-me

Code Review | Web4pro About me

WordPress plugin Web4pro About me scored 10% from 54 tests.

About plugin

  • Plugin page: web4pro-about-me
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.6
  • WordPress version: 5.8.1
  • First release: Sep 5, 2014
  • Latest release: Aug 22, 2016
  • Number of updates: 9
  • Update frequency: every 79.8 days
  • Top authors: WEB4PRO_co (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,602 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/web4pro-about-me/w4p_aboutme.php+13
    Function create_function() is deprecated

Server metrics [RAM: ▼1.72MB] [CPU: ▼217.91ms] Passed 4 tests

This is a short check of server-side resources used by Web4pro About me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼0.815.56 ▼22.98
Dashboard /wp-admin1.93 ▼1.135.64 ▼36.19
Posts /wp-admin/edit.php1.93 ▼1.186.23 ▼41.51
Add New Post /wp-admin/post-new.php1.93 ▼3.515.41 ▼770.96
Media Library /wp-admin/upload.php1.93 ▼1.0810.32 ▼16.46

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
widget_web4pro_aboutme_widget

Browser metrics Passed 4 tests

Checking browser requirements for Web4pro About me
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,294 ▲69819.03 ▲3.3925.78 ▲17.6449.21 ▲2.13
Dashboard /wp-admin3,168 ▲2347.28 ▲1.39157.25 ▲8.88117.60 ▲8.60
Posts /wp-admin/edit.php2,976 ▲2374.25 ▲1.5693.74 ▲21.3396.88 ▼1.08
Add New Post /wp-admin/post-new.php1,608 ▼2,13518.91 ▼0.26379.66 ▼103.55111.52 ▼8.92
Media Library /wp-admin/upload.php1,825 ▲184.79 ▼0.22121.97 ▼34.58124.40 ▼3.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/web4pro-about-me/w4p_aboutme.php+13
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_web4pro_aboutme_widget

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 fix the following
  • 1× 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/web4pro-about-me/w4p_aboutme.php:10

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: aboutme information, widget, about me

web4pro-about-me/w4p_aboutme.php 92% from 13 tests

Analyzing the main PHP file in "Web4pro About me" version 1.2
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("web4pro-about-me.php" instead of "w4p_aboutme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin429 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11712363
CSS112052
JavaScript10014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity18.75
▷ Minimum method complexity1.00
▷ Maximum method complexity38.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png38.44KB13.27KB▼ 65.47%
screenshot-3.png23.02KB8.27KB▼ 64.07%
screenshot-1.png65.63KB24.38KB▼ 62.85%