Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.89ms] Passed 4 tests
Analyzing server-side resources used by Embedly
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.92 ▼0.91 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.71 ▼4.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.94 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 78.33 ▼15.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.26 ▼3.29 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
embedly_settings |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Embedly: 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,840 ▲94 | 14.35 ▲0.07 | 1.92 ▲0.26 | 43.94 ▲2.39 |
Dashboard /wp-admin | 2,218 ▲44 | 5.55 ▼0.07 | 84.46 ▼6.51 | 35.37 ▼9.11 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.06 ▲0.07 | 43.75 ▲9.58 | 32.20 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.34 ▼0.28 | 667.95 ▲1.36 | 56.21 ▲7.30 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.26 ▲0.07 | 114.46 ▲11.46 | 47.64 ▲3.78 |
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
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/embedly/embedly.php:31
- > 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 issues were found
Optimizations
Plugin configuration Passed 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: image, video, card, pdf, embed...
embedly/embedly.php Passed 13 tests
The main file in "Embedly" v. 4.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
The Embedly Plugin extends Wordpress's automatic embed feature, allowing bloggers to Embed from 500+ services and counting.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,350 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 116 | 195 | 604 |
CSS | 1 | 21 | 15 | 369 |
JavaScript | 2 | 79 | 114 | 326 |
SVG | 2 | 0 | 2 | 32 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) img/embedly_wordpress_logo.png | 1.22KB | 0.00KB | ▼ 100.00% |
img/wordpressicon-93x88.png | 1.92KB | 1.01KB | ▼ 47.25% |