Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/movie-data-from-rt/rt-moviedata.php+26
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.90MB] [CPU: ▼59.37ms] Passed 4 tests
Server-side resources used by Movie Data from RT
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.34 ▼49.08 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.08 ▼49.75 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.04 ▼45.22 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.99 ▼93.42 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 7.22 ▼28.54 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_rt_moviedata_cc |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Movie Data from RT
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲19 | 14.29 ▼0.14 | 2.30 ▲0.23 | 42.61 ▼0.99 |
Dashboard /wp-admin | 2,207 ▲39 | 5.62 ▼0.01 | 98.39 ▼3.06 | 41.01 ▼2.53 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.00 ▲0.03 | 39.14 ▲1.47 | 35.27 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 23.40 ▲4.99 | 663.88 ▲23.39 | 52.99 ▼30.67 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.14 ▼0.07 | 101.46 ▼5.20 | 41.01 ▼7.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/movie-data-from-rt/rt-moviedata.php+26
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_rt_moviedata_cc
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-widget.php
- > /wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-page.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: rtmdcc_options in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-page.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/movie-data-from-rt/rt-moviedata.php:25
- > PHP Notice
Undefined variable: rtmdcc_options in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-widget.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-page.php on line 3
- > PHP Notice
Undefined variable: rtmdcc_options in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-page.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-widget.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-widget.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-widget-settings.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-page.php on line 2
- > PHP Notice
Undefined variable: rtmdcc_options in wp-content/plugins/movie-data-from-rt/inc/rt-moviedata-page.php on line 36
- > PHP Notice
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Dashboard), #2 (Widget Settings), #3 (Widget display: 1 Col | 2 Cols | 3 Cols), #4 (In Post/Page view (shortcode)), #5 (In Post/Page view (shortcode with options))
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
movie-data-from-rt/rt-moviedata.php 85% from 13 tests
The principal PHP file in "Movie Data from RT" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("movie-data-from-rt.php" instead of "rt-moviedata.php")
- Description: Keep the plugin description shorter than 140 characters (currently 193 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
There were no executable files found in this plugin495 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 47 | 64 | 405 |
CSS | 1 | 8 | 14 | 60 |
JavaScript | 2 | 6 | 15 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.76MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 244.16KB | 86.49KB | ▼ 64.57% |
screenshot-3.png | 273.49KB | 101.28KB | ▼ 62.97% |
screenshot-2.png | 24.47KB | 10.88KB | ▼ 55.55% |
screenshot-5.png | 92.76KB | 30.56KB | ▼ 67.05% |
screenshot-4.png | 141.27KB | 53.16KB | ▼ 62.37% |