Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.22ms] Passed 4 tests
A check of server-side resources used by F13 Movies
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.95 ▼13.73 |
Dashboard /wp-admin | 3.32 ▲0.01 | 52.19 ▼3.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 70.32 ▲15.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.44 ▼11.51 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.59 ▲3.98 |
Movie /wp-admin/admin.php?page=f13-movies | 3.29 | 45.65 |
Plugins /wp-admin/admin.php?page=f13-settings | 3.22 | 490.34 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for F13 Movies
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲61 | 13.71 ▼1.14 | 5.08 ▲3.09 | 42.76 ▼2.57 |
Dashboard /wp-admin | 2,226 ▲20 | 5.82 ▼0.04 | 117.43 ▲12.39 | 59.97 ▲20.19 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 1.97 ▼0.09 | 40.30 ▲1.35 | 36.88 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,557 ▲15 | 23.08 ▲4.75 | 653.58 ▼41.41 | 65.01 ▲10.38 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.24 ▲0.01 | 102.00 ▼3.32 | 44.55 ▲0.82 |
Movie /wp-admin/admin.php?page=f13-movies | 869 | 2.04 | 25.25 | 26.98 |
Plugins /wp-admin/admin.php?page=f13-settings | 927 | 2.02 | 29.02 | 31.37 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/f13-movie-shortcode/f13-movies.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/f13-movie-shortcode/f13-movies.php on line 14
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/f13-movie-shortcode/f13-movies.php on line 14
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== f13-movie-shortcode ===
) - Screenshots: These screenshots lack descriptions #2, #3 in f13-movie-shortcode/assets to your readme.txt
f13-movie-shortcode/f13-movies.php 85% from 13 tests
The main PHP file in "F13 Movies" ver. 2.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("f13-movie-shortcode.php" instead of "f13-movies.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,004 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 136 | 12 | 890 |
Markdown | 1 | 34 | 0 | 81 |
CSS | 2 | 3 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 34 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.48MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 189.02KB | 184.15KB | ▼ 2.57% |
screenshot-2.png | 121.94KB | 116.64KB | ▼ 4.34% |
screenshot-3.png | 183.46KB | 179.58KB | ▼ 2.11% |