Benchmarks
Plugin footprint Passed 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: ▲0.03MB] [CPU: ▼136.36ms] Passed 4 tests
A check of server-side resources used by Latest Apple Movie Trailers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 41.92 ▲19.90 |
Dashboard /wp-admin | 3.09 ▲0.04 | 63.86 ▲17.72 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 52.69 ▲8.20 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 94.54 ▼573.10 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.50 ▲1.74 |
Latest Apple Movie Trailers /wp-admin/options-general.php?page=latest-apple-movie-trailers/latest_apple_movie_trailers.php | 3.19 | 32.27 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 3 new options
New WordPress options |
---|
lamt_poster_size |
lamt_caption_position |
lamt_display_many |
Browser metrics Passed 4 tests
A check of browser resources used by Latest Apple Movie Trailers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.96 ▼0.04 | 15.20 ▲1.54 | 56.21 ▲7.32 |
Dashboard /wp-admin | 2,972 ▲38 | 5.96 ▲0.06 | 154.52 ▲9.66 | 151.48 ▲41.06 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 81.30 ▲13.68 | 87.91 ▼6.24 |
Add New Post /wp-admin/post-new.php | 1,686 ▲82 | 14.47 ▼4.40 | 494.62 ▲68.31 | 120.96 ▲11.74 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▼0.01 | 165.07 ▲3.80 | 132.97 ▲13.94 |
Latest Apple Movie Trailers /wp-admin/options-general.php?page=latest-apple-movie-trailers/latest_apple_movie_trailers.php | 1,341 | 2.10 | 53.57 | 89.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=latest-apple-movie-trailers/latest_apple_movie_trailers.php
- > User deprecated in wp-includes/functions.php+5401
rss.php is deprecated since version 3.0.0! Use wp-includes/class-simplepie.php instead.
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 plugin_basename() in wp-content/plugins/latest-apple-movie-trailers/latest_apple_movie_trailers.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Latest Movie Trailers displaying from Apple.com), #2 (Plugin Settings Page)
latest-apple-movie-trailers/latest_apple_movie_trailers.php 92% from 13 tests
The primary PHP file in "Latest Apple Movie Trailers" version 1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("latest-apple-movie-trailers.php" instead of "latest_apple_movie_trailers.php")
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
Good job! No executable or dangerous file extensions detected199 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 51 | 182 |
CSS | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
support/dropbox.png | 5.19KB | 1.90KB | ▼ 63.49% |
support/github.png | 4.15KB | 1.33KB | ▼ 67.98% |
support/twitter.png | 4.92KB | 1.87KB | ▼ 62.12% |
support/sebs-studio.png | 15.31KB | 6.10KB | ▼ 60.17% |
support/facebook.png | 4.63KB | 1.86KB | ▼ 59.89% |