Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▲2.13ms] Passed 4 tests
Server-side resources used by Encyclopedia / Glossary / Wiki
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.80 | 44.21 ▲3.44 |
Dashboard /wp-admin | 4.09 ▲0.74 | 58.12 ▼4.61 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 50.96 ▲4.24 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 98.48 ▲12.18 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 40.24 ▲5.44 |
Add Entry /wp-admin/post-new.php?post_type=encyclopedia | 4.14 | 55.31 |
Encyclopedia /wp-admin/options-general.php?page=encyclopedia-options | 4.06 | 44.25 |
All Entries /wp-admin/edit.php?post_type=encyclopedia | 4.06 | 44.28 |
Tags /wp-admin/edit-tags.php?taxonomy=encyclopedia-tag&post_type=encyclopedia | 4.00 | 38.92 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
widget_encyclopedia_taxonomy_cloud |
widget_encyclopedia_items |
widget_encyclopedia_taxonomies |
widget_recent-posts |
widget_recent-comments |
widget_encyclopdia_related_items |
theysaidso_admin_options |
widget_encyclopedia_search |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Encyclopedia / Glossary / Wiki
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲175 | 13.37 ▼0.96 | 9.00 ▲7.45 | 38.09 ▼6.63 |
Dashboard /wp-admin | 2,237 ▲62 | 5.58 ▼0.09 | 87.56 ▼15.35 | 41.24 ▼0.44 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.07 ▲0.13 | 38.31 ▼0.66 | 33.77 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 23.24 ▲0.27 | 638.55 ▼26.92 | 57.42 ▲0.57 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.27 ▲0.04 | 95.99 ▼2.12 | 40.20 ▼1.04 |
Add Entry /wp-admin/post-new.php?post_type=encyclopedia | 2,337 | 7.60 | 188.73 | 68.04 |
Encyclopedia /wp-admin/options-general.php?page=encyclopedia-options | 2,455 | 1.70 | 27.74 | 52.17 |
All Entries /wp-admin/edit.php?post_type=encyclopedia | 1,152 | 2.05 | 30.81 | 28.74 |
Tags /wp-admin/edit-tags.php?taxonomy=encyclopedia-tag&post_type=encyclopedia | 1,285 | 2.12 | 28.90 | 33.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 11 options in the database
- widget_encyclopedia_taxonomy_cloud
- widget_encyclopedia_taxonomies
- widget_encyclopedia_items
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_encyclopdia_related_items
- db_upgraded
- widget_recent-posts
- widget_encyclopedia_search
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/templates/encyclopedia-prefix-filter.php
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\Encyclopedia\\I18n' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/options-page/dropbox.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_Option() in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/templates/searchform-encyclopedia.php:8
- > PHP Notice
Undefined variable: filter in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/templates/encyclopedia-prefix-filter.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function WordPress\\Plugin\\Encyclopedia\\add_Filter() in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/includes/wp-query-extensions.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/widgets/taxonomy-cloud.php:7
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\Encyclopedia\\I18n' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/options-page/archive-page.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/widgets/related-items.php:7
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\Encyclopedia\\MockingBird' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/options-page/pro-version.php:9
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\Encyclopedia\\Options' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/options-page/options-page.php:10
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\Encyclopedia\\I18n' not found in wp-content/plugins/encyclopedia-lexicon-glossary-wiki-dictionary/options-page/post-type-labels.php:16
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: encyclopedia, vocabulary, glossary, knowledge base, lexicon...
encyclopedia-lexicon-glossary-wiki-dictionary/plugin.php 85% from 13 tests
The entry point to "Encyclopedia / Glossary / Wiki" version 1.7.57 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("encyclopedia-lexicon-glossary-wiki-dictionary.php" instead of "plugin.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin5,825 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 649 | 192 | 2,911 |
PO File | 4 | 910 | 1,169 | 2,426 |
CSS | 15 | 92 | 46 | 476 |
JavaScript | 2 | 4 | 1 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 22 | 78.57% |
▷ Concrete classes | 6 | 21.43% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 116 | 76.32% |
▷ Public methods | 141 | 92.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 7.24% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-logo-1544x500.png | 24.47KB | 24.87KB | 0.00% |