Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/immocaster/lib/Immocaster/Data/Mysql.php+105
Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/immocaster/lib/Immocaster/Data/Mysql.php:105
Stack trace:
#0 wp-content/plugins/immocaster/lib/Immocaster/Data/Mysql.php(80): Immocaster_Data_Mysql->connectDatabase()
#1 wp-content/plugins/immocaster/lib/Immocaster/Data/Mysql.php(61): Immocaster_Data_Mysql->__construct()
#2 wp-content/plugins/immocaster/lib/Immocaster/Sdk.php(145): Immocaster_Data_Mysql::getInstance()
#3 wp-content/plugins/immocaster/lib/immocaster.php(27): Immocaster_Sdk->setDataStorage()
#4 wp-content/plugins/immocaster/lib/immocaster.php(17): ImmocasterSDK->__construct()
#5 wp-content/plugins/immocaster/immocaster.php(160): ImmocasterSDK::getInstance()
#6 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#7 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
#8 /va
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.61ms] Passed 4 tests
Analyzing server-side resources used by Immocaster Wordpress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.25 ▲3.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.77 ▼3.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.52 ▼11.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.33 ▼18.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.38 ▲5.01 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Immocaster Wordpress Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.67 ▲0.35 | 1.66 ▼0.17 | 43.47 ▼1.46 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.09 | 87.77 ▼5.00 | 39.14 ▼4.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.03 | 38.92 ▼1.75 | 35.37 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.94 ▼0.33 | 682.47 ▲12.42 | 54.07 ▼16.32 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.20 ▲0.03 | 95.26 ▼23.19 | 48.18 ▼0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- 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
Please fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/immocaster/lib/Immocaster/Oauth/example/request_token.php
- > /wp-content/plugins/immocaster/lib/Immocaster/Oauth/example/client.php
- > /wp-content/plugins/immocaster/lib/Immocaster/Oauth/example/access_token.php
- > /wp-content/plugins/immocaster/lib/Immocaster/Oauth/example/echo_api.php
- > /wp-content/plugins/immocaster/lib/Immocaster/Oauth/example/index.php
- 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Declaration of MockOAuthDataStore::new_access_token($token, $consumer) should be compatible with OAuthDataStore::new_access_token($token, $consumer, $verifier = NULL) in wp-content/plugins/immocaster/lib/Immocaster/Oauth/OAuth_TestServer.php on line 98
- > PHP Fatal error
Uncaught Error: Class 'OAuthServer' not found in wp-content/plugins/immocaster/lib/Immocaster/Oauth/OAuth_TestServer.php:4
- > PHP Fatal error
Uncaught Error: Class 'OAuthDataStore' not found in wp-content/plugins/immocaster/lib/Immocaster/Oauth/tests/Mock_OAuthDataStore.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/immocaster/language.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/immocaster/lib/Immocaster/Oauth/tests/OAuthConsumerTest.php:5
- > PHP Warning
Declaration of MockOAuthDataStore::new_access_token($token, $consumer) should be compatible with OAuthDataStore::new_access_token($token, $consumer, $verifier = NULL) in wp-content/plugins/immocaster/lib/Immocaster/Oauth/OAuth_TestServer.php on line 98
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/immocaster/lib/widget_teaser.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/immocaster/immocaster.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/immocaster/lib/Immocaster/Oauth/tests/OAuthSignatureMethodHmacSha1Test.php:6
- > PHP Warning
Declaration of MockOAuthDataStore::new_request_token($consumer) should be compatible with OAuthDataStore::new_request_token($consumer, $callback = NULL) in wp-content/plugins/immocaster/lib/Immocaster/Oauth/OAuth_TestServer.php on line 91
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 ([Installation: Hinterlegen Sie Key und Secret.](http://medienopfer98.de/immocaster/screen1.jpg)), #2 ([Ergebnislisten erstellen Sie innerhalb von Seiten.](http://medienopfer98.de/immocaster/screen2.jpg)), #3 ([Teaser mit Immobilien können im Bereich Widgets angelegt werden.](http://medienopfer98.de/immocaster/screen3.jpg))
- Tags: You are using too many tags: 38 tag instead of maximum 10
immocaster/immocaster.php 92% from 13 tests
"Immocaster Wordpress Plugin" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 368 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected10,007 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 679 | 1,288 | 5,386 |
JavaScript | 12 | 1,462 | 1,067 | 3,668 |
CSS | 3 | 42 | 24 | 413 |
PO File | 1 | 132 | 346 | 285 |
HTML | 4 | 53 | 15 | 242 |
XML | 1 | 0 | 0 | 13 |
INI | 1 | 0 | 7 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 235 | |
▷ Static methods | 22 | 9.36% |
▷ Public methods | 178 | 75.74% |
▷ Protected methods | 9 | 3.83% |
▷ Private methods | 48 | 20.43% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 56 | |
▷ Global constants | 56 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/house_118x118.png | 1.59KB | 0.50KB | ▼ 68.37% |
images/immocaster_icon_med.png | 2.78KB | 1.79KB | ▼ 35.48% |
images/house_240x140.png | 1.01KB | 0.55KB | ▼ 45.11% |
images/immocaster_menu_icon.png | 1.56KB | 0.88KB | ▼ 43.51% |
lib/galleria/themes/classic/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |