10% feature-me

Code Review | Feature Me - CTA Widget

WordPress plugin Feature Me - CTA Widget scored 10% from 54 tests.

About plugin

  • Plugin page: feature-me
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: May 5, 2014
  • Number of updates: 10
  • Update frequency: every 12.6 days
  • Top authors: iandbanks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,366 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/feature-me/classes/featuremeWidget.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; featuremeWidget has a deprecated constructor

Server metrics [RAM: ▼1.78MB] [CPU: ▼55.81ms] Passed 4 tests

A check of server-side resources used by Feature Me - CTA Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.265.01 ▼39.86
Dashboard /wp-admin2.22 ▼1.086.01 ▼40.78
Posts /wp-admin/edit.php2.22 ▼1.138.45 ▼42.08
Add New Post /wp-admin/post-new.php2.22 ▼3.667.00 ▼100.53
Media Library /wp-admin/upload.php2.22 ▼1.016.45 ▼29.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
featureme_v_new
featureme_v
db_upgraded
can_compress_scripts
widget_recent-posts
widget_feature_me
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Feature Me - CTA Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲16114.03 ▼0.624.64 ▲2.7141.21 ▼9.03
Dashboard /wp-admin2,200 ▲125.79 ▲0.88106.10 ▼1.7238.28 ▼3.35
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0536.80 ▼3.1136.98 ▲4.00
Add New Post /wp-admin/post-new.php1,534 ▲1523.23 ▲0.25643.37 ▲18.4861.99 ▲8.31
Media Library /wp-admin/upload.php1,391 ▲124.21 ▲0.0695.74 ▼2.8540.59 ▼4.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/feature-me/classes/featuremeWidget.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; featuremeWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_feature_me
    • widget_theysaidso_widget
    • featureme_v_new
    • featureme_v
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feature-me/classes/featuremeWidget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/feature-me/init.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

feature-me/init.php 92% from 13 tests

The principal PHP file in "Feature Me - CTA Widget" v. 1.1.3 is loaded by WordPress automatically on each request
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 ("feature-me.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected666 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3101253455
JavaScript24372175
CSS12336

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity33.50
▷ Minimum class complexity11.00
▷ Maximum class complexity56.00
Average method complexity6.91
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin