Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.14ms] Passed 4 tests
Analyzing server-side resources used by ETH Embed Anchor.fm
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.52 ▼0.34 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.63 ▼1.61 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.46 ▼2.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.87 ▼8.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.14 ▲2.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ETH Embed Anchor.fm
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.36 ▼1.07 | 1.99 ▲0.18 | 44.91 ▲0.26 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.04 | 109.33 ▲3.54 | 42.41 ▲0.44 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.06 | 39.11 ▲2.99 | 34.91 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.14 ▼0.29 | 632.56 ▼31.41 | 50.30 ▼6.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.00 | 96.41 ▼2.29 | 43.36 ▼3.15 |
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
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'ETH_Embed_Anchor_FM\\Singleton' not found in wp-content/plugins/eth-embed-anchor-fm/inc/class-plugin.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function ETH_Embed_Anchor_FM\\add_action() in wp-content/plugins/eth-embed-anchor-fm/eth-embed-anchor-fm.php:43
- > PHP Fatal error
Trait 'ETH_Embed_Anchor_FM\\Singleton' not found in wp-content/plugins/eth-embed-anchor-fm/inc/class-block-editor.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: oembed, shortcode, podcast, anchorfm, audio...
eth-embed-anchor-fm/eth-embed-anchor-fm.php 92% from 13 tests
"ETH Embed Anchor.fm" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected146 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 137 | 145 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 5 | 55.56% |
▷ Protected methods | 3 | 33.33% |
▷ Private methods | 1 | 11.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin