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
Installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼20.25ms] Passed 4 tests
An overview of server-side resources used by Display Omeka Feed in Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.34 ▼1.17 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.61 ▼9.03 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 43.41 ▼4.77 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 34.90 ▼66.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.08 ▲2.10 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 22 new options
New WordPress options |
---|
omekafeedpull_Languagetoggle |
widget_recent-comments |
omekafeedpull_Publishertoggle |
widget_recent-posts |
omekafeedpull_Titletoggle |
omekafeedpull_Rightstoggle |
theysaidso_admin_options |
omekafeedpull_Creatortoggle |
widget_theysaidso_widget |
omekafeedpull_omekaroot |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Display Omeka Feed in Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.17 ▼1.20 | 1.72 ▼0.03 | 43.80 ▼5.69 |
Dashboard /wp-admin | 2,221 ▲33 | 5.88 ▲1.01 | 100.47 ▼4.83 | 70.27 ▲27.78 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▲0.02 | 34.53 ▼6.43 | 32.91 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.27 ▲0.07 | 776.65 ▲154.76 | 59.77 ▲10.10 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.14 ▼0.07 | 97.11 ▼5.22 | 70.86 ▲29.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/display-omeka-metadata/views/eachbox.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: unititle in wp-content/plugins/display-omeka-metadata/views/eachbox.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-omeka-metadata/create_admin_page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/display-omeka-metadata/views/configform.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-omeka-metadata/create_admin_page.php:4
- > PHP Notice
Undefined variable: unipar in wp-content/plugins/display-omeka-metadata/views/eachbox.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tested up to: Version not formatted correctly
display-omeka-metadata/omekafeed.php 92% from 13 tests
This is the main PHP file of "Display Omeka Feed in Wordpress" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("display-omeka-metadata.php" instead of "omekafeed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected314 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 56 | 101 | 312 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 50.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/engine2.png | 0.50KB | 0.39KB | ▼ 21.41% |