Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.31ms] Passed 4 tests
Server-side resources used by Screenly Cast
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.46 ▲0.42 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.35 ▼4.70 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.60 ▼2.94 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.48 ▼14.01 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.91 ▲1.93 |
Screenly /wp-admin/options-general.php?page=screenly | 3.25 | 45.29 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Screenly Cast: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.17 ▼1.41 | 1.82 ▲0.01 | 41.13 ▼11.53 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.95 | 105.79 ▼6.45 | 39.68 ▲0.13 |
Posts /wp-admin/edit.php | 2,072 ▼20 | 2.04 ▲0.04 | 37.94 ▼3.42 | 35.66 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.63 ▼5.67 | 574.90 ▼153.05 | 56.20 ▲5.14 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.18 ▼0.08 | 148.23 ▲32.59 | 61.84 ▲11.36 |
Screenly /wp-admin/options-general.php?page=screenly | 791 | 2.03 | 32.94 | 38.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/screenly-cast/theme/screenly-cast/header.php
- > /wp-content/plugins/screenly-cast/inc/screenly-cast.php
- > /wp-content/plugins/screenly-cast/theme/screenly-cast/404.php
- > /wp-content/plugins/screenly-cast/theme/screenly-cast/functions.php
- > /wp-content/plugins/screenly-cast/screenly-cast.php
- > /wp-content/plugins/screenly-cast/theme/screenly-cast/attachment.php
- > /wp-content/plugins/screenly-cast/theme/screenly-cast/footer.php
- > /wp-content/plugins/screenly-cast/tests/bootstrap.php
- > /wp-content/plugins/screenly-cast/theme/screenly-cast/index.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'SRLY_THEME_DIR/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/screenly-cast/tests/test-theme-functions.php on line 16
- > PHP Warning
Use of undefined constant SRLY_THEME_DIR - assumed 'SRLY_THEME_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/screenly-cast/tests/test-theme-functions.php on line 16
- > PHP Warning
require_once(SRLY_THEME_DIR/functions.php): failed to open stream: No such file or directory in wp-content/plugins/screenly-cast/tests/test-theme-functions.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/screenly-cast/inc/screenly-cast-settings.php:62
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/screenly-cast/tests/test-screenly-cast.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/screenly-cast/tests/test-screenly-cast-admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
screenly-cast/screenly-cast.php Passed 13 tests
The main file in "Screenly Cast" v. 0.1.19 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
WordPress plugin to enable casting of content on Screenly devices.
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 detected945 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 145 | 654 | 528 |
CSS | 1 | 44 | 16 | 266 |
Bourne Shell | 1 | 21 | 11 | 120 |
JavaScript | 1 | 4 | 6 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 25 | |
▷ Static methods | 13 | 52.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme/screenly-cast/screenshot.png | 2.46KB | 2.65KB | 0.00% |