Benchmarks
Plugin footprint 23% 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
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/cinema-catalog/cinema.php+44
Undefined index: edit
Server metrics [RAM: ▼1.73MB] [CPU: ▼47.46ms] Passed 4 tests
Analyzing server-side resources used by Cinema catalog
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.22 ▼0.28 |
Dashboard /wp-admin | 2.22 ▼1.09 | 10.64 ▼42.54 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 8.76 ▼39.88 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 7.93 ▼80.46 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 8.80 ▼26.95 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cinema |
New WordPress options |
---|
api_key |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_cinema_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Cinema catalog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.37 ▲0.13 | 1.78 ▼0.10 | 39.26 ▼4.13 |
Dashboard /wp-admin | 2,192 ▲15 | 5.55 ▼0.03 | 90.71 ▲1.37 | 36.27 ▼6.93 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.97 ▼0.01 | 39.37 ▲3.79 | 33.35 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.28 ▲0.19 | 667.65 ▼89.63 | 81.11 ▲19.44 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.01 | 99.99 ▼9.70 | 40.61 ▼6.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/cinema-catalog/cinema.php+44
Undefined index: edit
- Zombie tables detected upon uninstall: 1 table
- wp_cinema
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_cinema_widget
- api_key
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cinema-catalog/cinema.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in cinema-catalog/assets to your readme.txt
cinema-catalog/cinema.php 92% from 13 tests
This is the main PHP file of "Cinema catalog" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cinema-catalog.php" instead of "cinema.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected448 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 107 | 28 | 448 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 18 | |
▷ Static methods | 13 | 72.22% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin