Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲2.57ms] Passed 4 tests
An overview of server-side resources used by Embed iPhone/iPad App
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 45.94 ▲3.80 |
Dashboard /wp-admin | 3.46 ▲0.16 | 49.15 ▼0.19 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.43 ▲4.32 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 92.08 ▲7.83 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.59 ▲2.33 |
Embed iPhone App /wp-admin/options-general.php?page=embed_iphoneipad_app | 3.33 | 31.23 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed iPhone/iPad App
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.62 ▼1.03 | 4.99 ▲3.25 | 37.49 ▼9.15 |
Dashboard /wp-admin | 2,215 ▲27 | 4.81 ▼0.10 | 106.04 ▼2.66 | 39.70 ▲1.18 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.04 | 40.05 ▲0.87 | 34.27 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.43 ▼0.04 | 672.13 ▼1.21 | 56.94 ▲5.66 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.21 ▲0.02 | 100.11 ▼2.57 | 44.13 ▼0.97 |
Embed iPhone App /wp-admin/options-general.php?page=embed_iphoneipad_app | 932 | 2.18 | 24.20 | 54.95 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=embed_iphoneipad_app
- > Warning in wp-content/plugins/embed-iphoneipad-app/includes/Rsj/EmbedIphoneIpadApp.php+546
array_key_exists() expects parameter 2 to be array, bool given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=embed_iphoneipad_app
- > Notice in wp-content/plugins/embed-iphoneipad-app/includes/Rsj/EmbedIphoneIpadApp.php+575
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=embed_iphoneipad_app
- > Notice in wp-content/plugins/embed-iphoneipad-app/includes/Rsj/EmbedIphoneIpadApp.php+575
Trying to access array offset on value of type null
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/embed-iphoneipad-app/tests/bootstrap.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/PhgTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/Locale/ZendTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-iphoneipad-app/embed-iphoneipad-app.php:32
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/Locale/IntlTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/Locale/RawPhpTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/LinkshareTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/iTunesTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/embed-iphoneipad-app/tests/_SetupTest.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (sample formatted iPhone app on a post), #2 (admin settings), #3 (writing examples on WP HTML editor)
embed-iphoneipad-app/embed-iphoneipad-app.php Passed 13 tests
The main PHP script in "Embed iPhone/iPad App" version 1.5.1 is automatically included on every request by WordPress
46 characters long description:
Convert iTunes App Store Link To App Info HTML
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/embed-iphoneipad-app/generate_test.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 259 | 535 | 1,579 |
PO File | 1 | 93 | 124 | 298 |
CSS | 1 | 21 | 1 | 105 |
XML | 1 | 2 | 0 | 20 |
DOS Batch | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 11 | 8.40% |
▷ Public methods | 104 | 79.39% |
▷ Protected methods | 26 | 19.85% |
▷ Private methods | 1 | 0.76% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 12 | 57.14% |
▷ Class constants | 9 | 42.86% |
▷ Public constants | 9 | 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
4 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 116.03KB | 38.19KB | ▼ 67.09% |
screenshot-2.png | 54.74KB | 21.07KB | ▼ 61.52% |
screenshot-1.png | 168.60KB | 60.69KB | ▼ 64.00% |
images/available_on_the_app_store.png | 2.97KB | 1.43KB | ▼ 51.84% |