Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲2.44MB] [CPU: ▲17.38ms] Passed 4 tests
A check of server-side resources used by AMP on WordPress - weeblrAMP CE
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.49 ▲2.02 | 67.07 ▲25.29 |
Dashboard /wp-admin | 5.92 ▲2.62 | 71.41 ▲15.04 |
Posts /wp-admin/edit.php | 6.00 ▲2.64 | 74.08 ▲19.45 |
Add New Post /wp-admin/post-new.php | 8.45 ▲2.56 | 118.65 ▲11.65 |
Media Library /wp-admin/upload.php | 5.79 ▲2.56 | 65.28 ▲23.37 |
Settings /wp-admin/admin.php?page=weeblramp-settings | 6.55 | 102.43 |
Customize /wp-admin/admin.php?page=weeblramp-customize | 6.47 | 93.13 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification detected: 1 file (11.77KB) outside of "wp-content/plugins/weeblramp/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/weeblramp_plugins_handler.php
Filesystem: 537 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_wblib_keystore |
New WordPress options |
---|
wblib_last_installed_version_weeblramp/weeblramp.php |
weeblramp_last_amp_suffix |
theysaidso_admin_options |
weeblramp_current_stylesheet |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
weeblramp_last_op_mode |
weeblramp_last_post_types_hash |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for AMP on WordPress - weeblrAMP CE
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲69 | 13.25 ▼1.16 | 1.90 ▲0.09 | 40.48 ▼4.38 |
Dashboard /wp-admin | 2,246 ▲58 | 4.89 ▲0.01 | 111.51 ▼5.58 | 42.71 ▼1.37 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.03 ▼0.00 | 35.89 ▼2.90 | 38.30 ▲1.90 |
Add New Post /wp-admin/post-new.php | 6,263 ▲4,744 | 19.17 ▼3.91 | 888.88 ▲209.12 | 53.69 ▼7.55 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.27 ▲0.13 | 95.71 ▼28.94 | 42.74 ▼5.74 |
Settings /wp-admin/admin.php?page=weeblramp-settings | 3,999 | 3.96 | 94.66 | 38.34 |
Customize /wp-admin/admin.php?page=weeblramp-customize | 7,557 | 10.10 | 308.23 | 70.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- wblib_last_installed_version_weeblramp/weeblramp.php
- widget_recent-posts
- db_upgraded
- weeblramp_current_template
- weeblramp_activation_plugin_manager_errors
- weeblramp_current_stylesheet
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/weeblramp/vendor/weeblr/wblib/wblib.php
- 73× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'WEEBLRAMP_AMP__DIR__includes/embeds/class-amp-base-embed-handler.php' (include_path='.:/usr/share/php') in wp-content/plugins/weeblramp/vendor/wp/includes/embeds/class-amp-tumblr-embed-handler.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Joomla\\Registry\\AbstractRegistryFormat' not found in wp-content/plugins/weeblramp/vendor/weeblr/wblib/vendor/joomla/registry/src/Format/Ini.php:20
- > PHP Warning
Use of undefined constant WEEBLRAMP_AMP__DIR__ - assumed 'WEEBLRAMP_AMP__DIR__' (this will throw an Error in a future version of PHP) in wp-content/plugins/weeblramp/vendor/wp/includes/embeds/class-amp-dailymotion-embed.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Weeblr\\Wblib\\Joomla\\Uri\\AbstractUri' not found in wp-content/plugins/weeblramp/vendor/weeblr/wblib/vendor/joomla/uri/src/Uri.php:20
- > PHP Fatal error
Uncaught Error: Class 'Weeblr\\Wblib\\Joomla\\Uri\\AbstractUri' not found in wp-content/plugins/weeblramp/vendor/weeblr/wblib/vendor/joomla/uri/src/UriImmutable.php:19
- > PHP Warning
require_once(WEEBLRAMP_AMP__DIR__includes/embeds/class-amp-base-embed-handler.php): failed to open stream: No such file or directory in wp-content/plugins/weeblramp/vendor/wp/includes/embeds/class-amp-vine-embed.php on line 9
- > PHP Warning
require_once(WEEBLRAMP_AMP__DIR__includes/sanitizers/class-amp-base-sanitizer.php): failed to open stream: No such file or directory in wp-content/plugins/weeblramp/vendor/wp/includes/sanitizers/class-amp-iframe-sanitizer.php on line 4
- > PHP Fatal error
Uncaught Exception: weeblrAMP: unsupported feature in wp-content/plugins/weeblramp/public/amp-comments-post.php:26
- > PHP Warning
require_once(WEEBLRAMP_AMP__DIR__includes/sanitizers/class-amp-base-sanitizer.php): failed to open stream: No such file or directory in wp-content/plugins/weeblramp/vendor/wp/includes/sanitizers/class-amp-img-sanitizer.php on line 5
- > PHP Warning
Use of undefined constant WEEBLRAMP_AMP__DIR__ - assumed 'WEEBLRAMP_AMP__DIR__' (this will throw an Error in a future version of PHP) in wp-content/plugins/weeblramp/vendor/wp/includes/embeds/class-amp-soundcloud-embed.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: mobile optimization, amp, accelerated mobile pages, seo
weeblramp/weeblramp.php Passed 13 tests
The primary PHP file in "AMP on WordPress - weeblrAMP CE" version 1.12.5.783 is used by WordPress to initiate all plugin functionality
55 characters long description:
Provides Accelerated Mobile Pages support for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin33,527 lines of code in 395 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 314 | 7,066 | 16,755 | 29,033 |
LESS | 24 | 431 | 566 | 2,237 |
JavaScript | 13 | 310 | 669 | 1,763 |
Pascal | 1 | 72 | 163 | 193 |
CSS | 34 | 0 | 5 | 135 |
Markdown | 1 | 19 | 0 | 86 |
PO File | 2 | 11 | 12 | 56 |
JSON | 3 | 0 | 0 | 21 |
SVG | 2 | 0 | 0 | 2 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 162 | |
▷ Abstract classes | 6 | 3.70% |
▷ Concrete classes | 156 | 96.30% |
▷ Final classes | 1 | 0.64% |
Methods | 1,203 | |
▷ Static methods | 317 | 26.35% |
▷ Public methods | 821 | 68.25% |
▷ Protected methods | 214 | 17.79% |
▷ Private methods | 168 | 13.97% |
Functions | 82 | |
▷ Named functions | 76 | 92.68% |
▷ Anonymous functions | 6 | 7.32% |
Constants | 258 | |
▷ Global constants | 35 | 13.57% |
▷ Class constants | 223 | 86.43% |
▷ Public constants | 223 | 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
33 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/dist/img/2016-08-21-weeblramp-logo-h60px-margin.png | 1.31KB | 1.31KB | 0.00% |
assets/admin/dist/img/2016-08-21-weeblramp-logo-h100px-margin.png | 2.06KB | 2.07KB | 0.00% |
assets/admin/dist/img/2016-08-21-weeblramp-logo-background-h200px-margin.png | 4.45KB | 4.48KB | 0.00% |
assets/default/src/img/2016-08-21-weeblramp-update-banner-small.png | 13.32KB | 6.17KB | ▼ 53.68% |
assets/admin/dist/img/2016-08-21-weeblramp-update-banner-small.png | 3.44KB | 3.44KB | 0.00% |