Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.59ms] Passed 4 tests
Server-side resources used by Movie Discovery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.38 ▲0.78 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.59 ▼6.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 58.56 ▼6.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.54 ▼10.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.03 ▲3.66 |
Movie Discovery /wp-admin/options-general.php?page=movie-discovery | 3.26 | 34.71 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Movie Discovery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.78 ▼0.76 | 8.75 ▲6.92 | 41.81 ▲3.08 |
Dashboard /wp-admin | 2,193 ▲19 | 5.54 ▼0.06 | 84.89 ▼7.69 | 38.73 ▲0.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.02 | 39.60 ▼3.42 | 37.93 ▼13.25 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.16 ▲0.15 | 748.23 ▲62.18 | 58.55 ▼0.68 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.25 ▲0.05 | 107.56 ▲8.06 | 45.77 ▼0.22 |
Movie Discovery /wp-admin/options-general.php?page=movie-discovery | 863 | 2.00 | 30.31 | 30.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=movie-discovery
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=movie-discovery
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=movie-discovery
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/movie-discovery/admin/views/admin.php
- > /wp-content/plugins/movie-discovery/admin/views/ajax_data.php
- > /wp-content/plugins/movie-discovery/admin/views/movie_selector.php
- > /wp-content/plugins/movie-discovery/public/views/public.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: result in wp-content/plugins/movie-discovery/admin/views/ajax_data.php on line 27
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Donate link: Invalid url: "-"
movie-discovery/movie-discovery.php 92% from 13 tests
The main file in "Movie Discovery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected698 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 209 | 354 | 490 |
CSS | 2 | 25 | 2 | 161 |
JavaScript | 3 | 8 | 2 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 7 | 26.92% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/md-logo_270.png | 4.97KB | 2.61KB | ▼ 47.54% |
admin/assets/img/md-icon.png | 1.80KB | 0.98KB | ▼ 45.25% |