10% wurdey

Code Review | Wurdey

WordPress plugin Wurdey scored10%from 54 tests.

About plugin

  • Plugin page: wurdey
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3
  • WordPress version: 6.3.1
  • First release: Dec 5, 2014
  • Latest release: Aug 28, 2015
  • Number of updates: 11
  • Update frequency: every 24.2 days
  • Top authors: wurdey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wurdey/class/WurdeyChild.class.php+85
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼47.97ms] Passed 4 tests

This is a short check of server-side resources used by Wurdey
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.94 ▼33.07
Dashboard /wp-admin2.05 ▼1.2610.69 ▼38.02
Posts /wp-admin/edit.php2.05 ▼1.318.12 ▼41.62
Add New Post /wp-admin/post-new.php2.05 ▼3.845.27 ▼79.17
Media Library /wp-admin/upload.php2.05 ▼1.185.76 ▼26.76
wurdey Server Information /wp-admin/options-general.php?page=WurdeyChildServerInformation2.055.61
wurdey Restore /wp-admin/import.php?page=wurdey-child-restore2.058.03
wurdey Restore /wp-admin/options-general.php?page=WurdeyRestore2.056.11
wurdey Settings /wp-admin/options-general.php?page=WurdeySettings2.056.82

Server storage [IO: ▲0.81MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Wurdey
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20614.04 ▼0.646.32 ▲4.6031.53 ▼9.82
Dashboard /wp-admin2,220 ▲325.88 ▲1.01107.94 ▼2.7484.95 ▲42.73
Posts /wp-admin/edit.php2,121 ▲321.98 ▼0.0438.73 ▼1.6840.08 ▲3.20
Add New Post /wp-admin/post-new.php1,554 ▲2523.18 ▲4.62687.39 ▲48.1548.94 ▼6.97
Media Library /wp-admin/upload.php1,417 ▲294.23 ▲0.0794.60 ▼4.3882.28 ▲39.30
wurdey Server Information /wp-admin/options-general.php?page=WurdeyChildServerInformation1,3992.0223.7433.73
wurdey Restore /wp-admin/import.php?page=wurdey-child-restore280.440.073.78
wurdey Restore /wp-admin/options-general.php?page=WurdeyRestore9632.2528.7237.63
wurdey Settings /wp-admin/options-general.php?page=WurdeySettings8372.0124.5133.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wurdey/class/WurdeyChild.class.php+85
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WurdeySettings
    • > Deprecated in wp-content/plugins/wurdey/class/WurdeyChild.class.php+85
    Function create_function() is deprecated
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WurdeySettings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wurdey handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=WurdeyChildServerInformation
    • > Notice in wp-content/plugins/wurdey/class/WurdeyChildServerInformation.class.php+640
    Undefined index: HTTP_REFERER
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=WurdeyRestore
    • > Notice in wp-content/plugins/wurdey/class/WurdeyHelper.class.php+669
    A non well formed numeric value encountered

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wurdey/class/WurdeyChild.class.php on line 6
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wurdey/class/WurdeyChild.class.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wurdey/wurdey-helper.php on line 12
    • > PHP Warning
      include_once(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in wp-content/plugins/wurdey/wurdey-helper.php on line 12
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/version.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wurdey/wurdey-helper.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wurdey/class/WurdeyChild.class.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wurdey/wurdey-helper.php:14
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/wurdey/class/WurdeyChild.class.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wurdey/class/WurdeyChild.class.php on line 6
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wurdey/wurdey-helper.php on line 14

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/import.php?page=wurdey-child-restore
    • > Network (severe)
    wp-admin/import.php?page=wurdey-child-restore - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Detailed Reporting)
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

wurdey/wurdey-helper.php 85% from 13 tests

The entry point to "Wurdey" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wurdey.php" instead of "wurdey-helper.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin12,457 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,6461,46211,011
PO File54569991,037
JavaScript44772368
CSS371041

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity124.26
▷ Minimum class complexity3.00
▷ Maximum class complexity744.00
Average method complexity5.85
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods482
▷ Static methods18237.76%
▷ Public methods42187.34%
▷ Protected methods5411.20%
▷ Private methods71.45%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
30 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/1.10.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
images/wurdey-activation.png5.85KB2.92KB▼ 50.06%
css/1.11.1/images/ui-bg_gloss-wave_35_f6a828_500x100.png5.72KB1.83KB▼ 67.99%
css/1.10.4/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
css/1.10.4/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%