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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 52.45 ▲1.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.91 ▼9.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.89 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.83 ▼6.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.02 | 1.88 ▼0.04 | 43.35 ▼2.84 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.09 | 85.52 ▼16.18 | 37.28 ▼7.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 39.31 ▼3.16 | 35.17 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.24 ▲0.23 | 693.89 ▲37.23 | 61.48 ▲1.22 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.03 | 99.51 ▼13.02 | 45.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 1,448 | 5,735 | 8,496 |
Markdown | 5 | 101 | 0 | 439 |
CSS | 1 | 11 | 8 | 258 |
JavaScript | 4 | 16 | 41 | 243 |
JSON | 3 | 0 | 0 | 122 |
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 code | 0.51 |
Average class complexity | 25.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 1 | 1.64% |
▷ Concrete classes | 60 | 98.36% |
▷ Final classes | 0 | 0.00% |
Methods | 538 | |
▷ Static methods | 69 | 12.83% |
▷ Public methods | 399 | 74.16% |
▷ Protected methods | 120 | 22.30% |
▷ Private methods | 19 | 3.53% |
Functions | 21 | |
▷ Named functions | 7 | 33.33% |
▷ Anonymous functions | 14 | 66.67% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.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