Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.30ms] Passed 4 tests
Server-side resources used by WP Theater
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 40.18 ▲3.66 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.87 ▼11.99 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.31 ▲1.21 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.04 ▼18.33 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.25 ▼0.10 |
WP Theater /wp-admin/options-general.php?page=wp_theater | 3.24 | 38.83 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
wp_theater_options |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Theater: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.46 ▲0.22 | 1.75 ▲0.11 | 42.29 ▲5.44 |
Dashboard /wp-admin | 2,211 ▲31 | 5.57 ▼0.10 | 84.03 ▼2.59 | 41.98 ▼0.31 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.01 ▲0.06 | 34.38 ▼1.31 | 36.91 ▲5.79 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 17.95 ▼5.23 | 643.68 ▼31.45 | 74.82 ▲20.56 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.23 ▲0.06 | 110.57 ▲1.85 | 47.63 ▼0.31 |
WP Theater /wp-admin/options-general.php?page=wp_theater | 892 | 2.00 | 26.55 | 33.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp_theater
- > 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=wp_theater
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-theater/inc/filters.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (Sample screen shot of how a Vimeo group would look. Image shows the title, theater, lower-lights & full window buttons, videos listing with thumb & title and a link to more content.) image missing
wp-theater/wp-theater.php Passed 13 tests
The principal PHP file in "WP Theater" v. 1.2.3 is loaded by WordPress automatically on each request
118 characters long description:
Adds shortcodes that can display embeds, previews, user uploads, playlists, channels and groups from Youtube or Vimeo.
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 detected1,454 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 290 | 453 | 948 |
CSS | 3 | 31 | 20 | 318 |
JavaScript | 2 | 44 | 14 | 174 |
SVG | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 5.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 13 | 27.66% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 2 | 4.26% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 163.64KB | 129.94KB | ▼ 20.60% |