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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.88ms] Passed 4 tests
A check of server-side resources used by Ancient World Linked Data for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.93 ▼2.94 |
Dashboard /wp-admin | 3.39 ▲0.08 | 43.32 ▼2.25 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.33 ▲0.88 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.00 ▼11.22 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.31 ▲1.77 |
AWLD Linked Data /wp-admin/options-general.php?page=wp-awld-js-settings | 3.37 | 27.54 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 262 new files
Database: no new tables, 12 new options
New WordPress options |
---|
wp_awld_js_scope |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
wp_awld_js_quicktags |
wp_awld_js_db_version |
wp_awld_js_widget_implement |
wp_awld_js_button |
db_upgraded |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Ancient World Linked Data for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.25 ▼0.73 | 1.58 ▼0.05 | 38.15 ▼2.74 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▼0.02 | 112.59 ▲14.80 | 42.09 ▲1.46 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.00 ▲0.01 | 40.33 ▲0.44 | 35.78 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,544 ▲3 | 23.09 ▼0.13 | 638.61 ▼22.63 | 54.32 ▼0.34 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.23 ▼0.05 | 94.79 ▼4.00 | 40.40 ▼6.95 |
AWLD Linked Data /wp-admin/options-general.php?page=wp-awld-js-settings | 961 | 2.05 | 28.70 | 35.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/widgets/widget-awld-index.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/admin/admin-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/admin/admin-init.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/core/functions.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ancient-world-linked-data-for-wordpress/inc/widgets/widget-awld-index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (popover) image required
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ancient-world-linked-data-for-wordpress/wp-awld-js.php 77% from 13 tests
The main file in "Ancient World Linked Data for WordPress" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("ancient-world-linked-data-for-wordpress.php" instead of "wp-awld-js.php")
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
Good job! No executable or dangerous file extensions detected13,795 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 132 | 2,029 | 3,007 | 11,030 |
PHP | 10 | 134 | 363 | 998 |
CSS | 5 | 59 | 42 | 604 |
CoffeeScript | 23 | 120 | 38 | 456 |
HTML | 18 | 5 | 3 | 277 |
LESS | 1 | 34 | 12 | 176 |
Markdown | 5 | 57 | 0 | 131 |
Python | 1 | 7 | 0 | 47 |
JSON | 1 | 0 | 0 | 35 |
make | 1 | 9 | 0 | 32 |
YAML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 194.47KB | 64.94KB | ▼ 66.61% |
inc/assets/css/admin/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/assets/css/admin/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |
inc/assets/css/admin/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/assets/css/admin/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |