84% braille

Code Review | Braille

WordPress plugin Braille scored84%from 54 tests.

About plugin

  • Plugin page: braille
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Jul 1, 2013
  • Latest release: Oct 30, 2018
  • Number of updates: 21
  • Update frequency: every 93.5 days
  • Top authors: jgsmith (95.24%)boonebgorges (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,958 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.85ms] Passed 4 tests

This is a short check of server-side resources used by Braille
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.33 ▲3.37
Dashboard /wp-admin3.38 ▲0.0748.30 ▲0.51
Posts /wp-admin/edit.php3.49 ▲0.1346.13 ▲1.61
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.24 ▲0.64
Media Library /wp-admin/upload.php3.30 ▲0.0734.29 ▲0.64
Braille Plugin /wp-admin/options-general.php?page=edu-umd-mith-braille3.2633.75

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Braille: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.69 ▲0.021.77 ▼0.0443.28 ▼4.17
Dashboard /wp-admin2,204 ▲165.85 ▼0.04102.23 ▼11.8439.62 ▼7.43
Posts /wp-admin/edit.php2,096 ▲71.97 ▼0.0741.09 ▲5.3637.25 ▲0.20
Add New Post /wp-admin/post-new.php1,554 ▲2118.17 ▼4.87650.73 ▲15.5554.46 ▼2.58
Media Library /wp-admin/upload.php1,392 ▲104.26 ▼0.0398.58 ▼1.6145.18 ▲3.56
Braille Plugin /wp-admin/options-general.php?page=edu-umd-mith-braille8452.1525.2525.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/braille/braille.php:2
    • > PHP Warning
      Use of undefined constant ANTHOLOGIZE_TEIDOMAPI_PATH - assumed 'ANTHOLOGIZE_TEIDOMAPI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/braille/templates/brl/output.php on line 4
    • > 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/braille/templates/brl/output.php on line 5
    • > PHP Warning
      Use of undefined constant ANTHOLOGIZE_TEIDOM_PATH - assumed 'ANTHOLOGIZE_TEIDOM_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/braille/templates/brl/output.php on line 3
    • > PHP Warning
      require_once(WP_PLUGIN_DIR/anthologize/includes/theming-functions.php): failed to open stream: No such file or directory in wp-content/plugins/braille/templates/brl/output.php on line 5
    • > PHP Warning
      include_once(): Failed opening 'ANTHOLOGIZE_TEIDOM_PATH' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/braille/templates/brl/output.php on line 3
    • > PHP Warning
      include_once(ANTHOLOGIZE_TEIDOM_PATH): failed to open stream: No such file or directory in wp-content/plugins/braille/templates/brl/output.php on line 3
    • > PHP Warning
      include_once(ANTHOLOGIZE_TEIDOMAPI_PATH): failed to open stream: No such file or directory in wp-content/plugins/braille/templates/brl/output.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'ANTHOLOGIZE_TEIDOMAPI_PATH' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/braille/templates/brl/output.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_PLUGIN_DIR/anthologize/includes/theming-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/braille/templates/brl/output.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: braille, plugin, anthologize

braille/braille.php Passed 13 tests

The main file in "Braille" v. 0.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
This plugin allows you to incorporate SimBraille or BRL formatted text from English text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin572 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8170110566
CSS1006

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected