10% wordbol

Code Review | Wordbol

WordPress plugin Wordbol scored10%from 54 tests.

About plugin

  • Plugin page: wordbol
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Aug 4, 2014
  • Latest release: Aug 29, 2014
  • Number of updates: 17
  • Update frequency: every 2.7 days
  • Top authors: knub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /842 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/wordbol/wordbol.php+34
    require_once(config.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.99ms] Passed 4 tests

Server-side resources used by Wordbol
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0052.45 ▲1.03
Dashboard /wp-admin3.31 ▲0.0046.91 ▼9.54
Posts /wp-admin/edit.php3.36 ▲0.0052.89 ▲0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.83 ▼6.87
Media Library /wp-admin/upload.php3.23 ▲0.0036.88 ▼0.10

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Wordbol: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.88 ▼0.0443.35 ▼2.84
Dashboard /wp-admin2,192 ▲125.57 ▼0.0985.52 ▼16.1837.28 ▼7.22
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0439.31 ▼3.1635.17 ▼0.70
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.23693.89 ▲37.2361.48 ▲1.22
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0399.51 ▼13.0245.00 ▼3.99

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EasyRdf_Literal' not found in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/lib/EasyRdf/Literal/Date.php:46
    • > PHP Warning
      require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/doap.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'EasyRdf_Serialiser_Ntriples' not found in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/Rapper.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'EasyRdf_Parser' not found in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Ntriples.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'EasyRdf_Serialiser_RdfPhp' not found in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/Arc.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Wordbol\\Models\\Enhancement' not found in wp-content/plugins/wordbol/src/Wordbol/Models/EntityAnnotation.php:6
    • > PHP Warning
      closedir() expects parameter 1 to be resource, bool given in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/scripts/copyright_updater.php on line 59
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/scripts/copyright_updater.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'EasyRdf_Serialiser' not found in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/lib/EasyRdf/Serialiser/Ntriples.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'EasyRdf_Parser' not found in wp-content/plugins/wordbol/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

wordbol/wordbol.php Passed 13 tests

The principal PHP file in "Wordbol" v. 1.1 is loaded by WordPress automatically on each request
43 characters long description:
Integration of Apache Stanbol in WordPress.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,558 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP681,4485,7358,496
Markdown51010439
CSS1118258
JavaScript41641243
JSON300122

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity25.56
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes61
▷ Abstract classes11.64%
▷ Concrete classes6098.36%
▷ Final classes00.00%
Methods538
▷ Static methods6912.83%
▷ Public methods39974.16%
▷ Protected methods12022.30%
▷ Private methods193.53%
Functions21
▷ Named functions733.33%
▷ Anonymous functions1466.67%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin