78% features

Code Review | Features

WordPress plugin Features scored78%from 54 tests.

About plugin

  • Plugin page: features
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Apr 9, 2014
  • Number of updates: 6
  • Update frequency: every 47.8 days
  • Top authors: KLicheR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.94ms] Passed 4 tests

An overview of server-side resources used by Features
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.45 ▲0.02
Dashboard /wp-admin3.34 ▲0.0347.32 ▼4.89
Posts /wp-admin/edit.php3.39 ▲0.0351.02 ▼4.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.91 ▼18.09
Media Library /wp-admin/upload.php3.26 ▲0.0335.37 ▲2.59
Features /wp-admin/tools.php?page=features-options3.2038.25

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Features
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.33 ▲0.051.95 ▼0.2346.32 ▲1.80
Dashboard /wp-admin2,202 ▲285.58 ▲0.0591.17 ▼12.3038.70 ▼2.61
Posts /wp-admin/edit.php2,104 ▼01.94 ▼0.0739.02 ▲3.1937.42 ▲5.57
Add New Post /wp-admin/post-new.php1,532 ▲623.23 ▲0.13705.29 ▲52.7960.46 ▲4.35
Media Library /wp-admin/upload.php1,401 ▲14.15 ▼0.03108.69 ▼3.5348.41 ▲3.75
Features /wp-admin/tools.php?page=features-options7962.0126.2627.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=features-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=features-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/features/features.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Features' not found in wp-content/plugins/features/features_options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

features/features.php Passed 13 tests

Analyzing the main PHP file in "Features" version 0.0.2
75 characters long description:
Help to migrate entries from "wp_options" table from multiple environments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21721201

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin