72% openbadgesme-open-badges-designer

Code Review | OpenBadges.me Open Badges designer

WordPress plugin OpenBadges.me Open Badges designer scored72%from 54 tests.

About plugin

  • Plugin page: openbadgesme-open...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.5.0
  • WordPress version: 6.3.1
  • First release: Apr 11, 2013
  • Latest release: Mar 31, 2016
  • Number of updates: 16
  • Update frequency: every 67.9 days
  • Top authors: myknowledgemap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /4,263 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.75ms] Passed 4 tests

An overview of server-side resources used by OpenBadges.me Open Badges designer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.04 ▼1.31
Dashboard /wp-admin3.32 ▲0.0251.94 ▼2.37
Posts /wp-admin/edit.php3.37 ▲0.0150.03 ▼2.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.68 ▼28.85
Media Library /wp-admin/upload.php3.24 ▲0.0140.28 ▲1.82
Badge Designer /wp-admin/upload.php?page=db-menu-identifier3.1832.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for OpenBadges.me Open Badges designer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.165.30 ▲3.5143.95 ▲1.56
Dashboard /wp-admin2,210 ▲215.80 ▲0.89116.48 ▲9.2845.84 ▲0.67
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0437.89 ▼3.2534.99 ▼1.11
Add New Post /wp-admin/post-new.php1,536 ▲823.17 ▲4.82672.02 ▲28.7764.88 ▲9.40
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0194.90 ▼15.5443.43 ▲1.75
Badge Designer /wp-admin/upload.php?page=db-menu-identifier7701.8726.0323.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/upload.php?page=db-menu-identifier
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
    • > GET request to /wp-admin/upload.php?page=db-menu-identifier
    • > Notice in wp-content/plugins/openbadgesme-open-badges-designer/badge_designer.php+44
    Undefined index: targetImage

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openbadgesme-open-badges-designer/badge_designer.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/upload.php?page=db-menu-identifier
    • > Network (severe)
    chrome-error://chromewebdata/ - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/upload.php?page=db-menu-identifier
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://www.openbadges.me/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

openbadgesme-open-badges-designer/badge_designer.php 92% from 13 tests

The entry point to "OpenBadges.me Open Badges designer" version 2.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("openbadgesme-open-badges-designer.php" instead of "badge_designer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194067

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin