Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼34.10ms] Passed 4 tests
This is a short check of server-side resources used by Movie Database
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.69 ▲0.89 |
Dashboard /wp-admin | 3.12 ▼0.19 | 23.48 ▼33.15 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 23.54 ▼24.39 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 22.85 ▼67.88 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 22.96 ▼10.98 |
Wishlist /wp-admin/admin.php?page=movdb_reservations_page | 3.12 | 22.04 |
Screenings /wp-admin/admin.php?page=movdb_screenings_page | 3.12 | 23.07 |
Movies /wp-admin/index.php?page=movdb_main_page | 3.12 | 22.60 |
Movies /wp-admin/admin.php?page=movdb_movies_page | 3.12 | 25.04 |
Sources /wp-admin/admin.php?page=movdb_sources_page | 3.12 | 19.44 |
Survey /wp-admin/admin.php?page=movdb_main_page | 3.12 | 23.20 |
Views /wp-admin/admin.php?page=movdb_views_page | 3.12 | 23.13 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_movdb_sources |
wp_movdb_reservations |
wp_movdb_screenings |
wp_movdb_movies |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
movdb_db_version |
widget_movdb_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Movie Database
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲288 | 13.72 ▼0.66 | 5.95 ▲3.89 | 46.59 ▲0.30 |
Dashboard /wp-admin | 2,349 ▲158 | 5.00 ▲0.09 | 104.05 ▼4.47 | 42.92 ▼0.02 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.07 ▲0.06 | 35.18 ▼0.95 | 33.80 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.27 ▲0.07 | 669.30 ▲5.39 | 57.68 ▲5.26 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.28 ▲0.05 | 100.14 ▼2.42 | 43.95 ▲0.47 |
Wishlist /wp-admin/admin.php?page=movdb_reservations_page | 1,172 | 1.76 | 26.58 | 27.06 |
Screenings /wp-admin/admin.php?page=movdb_screenings_page | 1,183 | 1.77 | 26.38 | 32.61 |
Movies /wp-admin/index.php?page=movdb_main_page | 1,319 | 1.94 | 30.59 | 41.23 |
Movies /wp-admin/admin.php?page=movdb_movies_page | 1,222 | 1.78 | 26.07 | 30.44 |
Sources /wp-admin/admin.php?page=movdb_sources_page | 1,277 | 1.91 | 25.93 | 30.05 |
Survey /wp-admin/admin.php?page=movdb_main_page | 1,338 | 1.94 | 30.67 | 33.78 |
Views /wp-admin/admin.php?page=movdb_views_page | 1,141 | 1.80 | 26.82 | 29.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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 cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables were found after uninstall: 4 tables
- wp_movdb_movies
- wp_movdb_screenings
- wp_movdb_reservations
- wp_movdb_sources
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_movdb_widget
- movdb_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 111 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=movdb_views_page
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=movdb_sources_page
- > Notice in wp-content/plugins/movie-database/sources-page.php+5
Undefined index: action
SRP 50% 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
The following issues need your attention
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/movie-database/class/MovDB_SuggestionsBest_List_Table.class.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/movie-database/class/MovDB_Reservations_List_Table.class.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/movie-database/class/MovDB_SuggestionsNotSeen_List_Table.class.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/movie-database/class/MovDB_DeletableSources_List_Table.class.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/movie-database/class/MovDB_DeletableSources_List_Table.class.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'MovDB_View' not found in wp-content/plugins/movie-database/class/MovDB_SeenUnrated_View.class.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/movie-database/class/MovDB_Screenings_List_Table.class.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'MovDB_View' not found in wp-content/plugins/movie-database/class/MovDB_LastScreenings_View.class.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/movie-database/class/MovDB_SuggestionsBest_List_Table.class.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/movie-database/class/MovDB_DeletableSources_List_Table.class.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: movies, home cinema, movie theater, cinema, movie database...
movie-database/movie-database.php Passed 13 tests
"Movie Database" version 1.0.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
Adds a movie database to WordPress. You can manage your movie collection and show everyone, which movies you were watching recently.
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
Success! There were no dangerous files found in this plugin5,210 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 915 | 1,380 | 3,904 |
PO File | 2 | 286 | 448 | 664 |
JavaScript | 2 | 100 | 3 | 360 |
CSS | 2 | 79 | 7 | 282 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 21.08 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 167 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 57 | |
▷ Named functions | 57 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-3d.png | 0.43KB | 0.38KB | ▼ 12.36% |