Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.56MB] [CPU: ▼18.97ms] Passed 4 tests
Analyzing server-side resources used by Embed Link
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.16 ▲0.37 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.06 ▼8.78 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.15 ▼5.97 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 36.57 ▼58.54 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.33 ▼2.60 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed Link
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲49 | 13.58 ▼1.00 | 4.20 ▲2.16 | 39.77 ▼1.65 |
Dashboard /wp-admin | 2,222 ▲33 | 4.89 ▼1.12 | 110.30 ▲2.50 | 41.73 ▼1.90 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.04 ▼0.01 | 39.52 ▼1.08 | 34.35 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 19.09 ▼4.04 | 616.49 ▼61.43 | 53.30 ▼1.80 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.20 ▼0.05 | 96.13 ▼42.37 | 40.87 ▼16.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-link/embed-link.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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: oembed, image, opengraph, post, page...
embed-link/embed-link.php Passed 13 tests
The primary PHP file in "Embed Link" version 1.0.4 is used by WordPress to initiate all plugin functionality
65 characters long description:
Embed any link in Wordpress using it's open graph thumbnail image
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
Success! There were no dangerous files found in this plugin571 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 48 | 549 |
CSS | 1 | 0 | 9 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 13 | 28.26% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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 are no PNG files in this plugin