Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼297.25ms] Passed 4 tests
A check of server-side resources used by FreeFlow Content Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.24 ▼0.27 | 20.85 ▼27.82 |
Dashboard /wp-admin | 3.58 ▲0.18 | 33.70 ▲2.30 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 45.78 ▲9.43 |
Add New Post /wp-admin/post-new.php | 7.06 ▲0.09 | 94.32 ▼1,155.75 |
Media Library /wp-admin/upload.php | 3.47 ▲0.17 | 24.56 ▼7.71 |
Settings /wp-admin/admin.php?page=freeflow | 3.44 | 23.91 |
Dashboard /wp-admin/admin.php?page=freeflow-dashboard | 3.44 | 23.45 |
Entries /wp-admin/admin.php?page=freeflow-entries | 3.45 | 23.26 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 1 new table, no new options
New tables |
---|
wp_freeflow_entries |
Browser metrics Passed 4 tests
An overview of browser requirements for FreeFlow Content Plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,586 ▲842 | 17.45 ▲1.38 | 116.06 ▲110.09 | 200.93 ▲198.76 |
Dashboard /wp-admin | 2,958 ▲97 | 7.12 ▲0.99 | 117.86 ▼13.51 | 174.26 ▲17.04 |
Posts /wp-admin/edit.php | 2,722 ▲28 | 3.51 ▲0.28 | 67.36 ▲1.27 | 138.01 ▼5.90 |
Add New Post /wp-admin/post-new.php | 1,717 ▲27 | 19.22 ▼1.98 | 385.12 ▼47.44 | 185.01 ▲25.75 |
Media Library /wp-admin/upload.php | 1,761 ▲60 | 6.20 ▲0.68 | 125.56 ▼11.46 | 202.79 ▲13.65 |
Settings /wp-admin/admin.php?page=freeflow | 1,294 | 3.04 | 56.53 | 121.78 |
Dashboard /wp-admin/admin.php?page=freeflow-dashboard | 1,147 | 3.89 | 132.71 | 133.06 |
Entries /wp-admin/admin.php?page=freeflow-entries | 1,323 | 3.27 | 59.49 | 100.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/freeflow/templates/freeflow-bar.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (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/freeflow/include/class-entries-list.php on line 10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/freeflow/templates/dashboard.php:85
- > PHP Notice
Undefined variable: settings in wp-content/plugins/freeflow/templates/freeflow-bar.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/freeflow/templates/freeflow-bar.php on line 13
- > PHP Notice
Undefined variable: remaining in wp-content/plugins/freeflow/templates/freeflow-bar.php on line 13
- > PHP Notice
Undefined variable: entries in wp-content/plugins/freeflow/templates/dashboard.php on line 26
- > PHP Notice
Undefined variable: settings in wp-content/plugins/freeflow/templates/freeflow-bar.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/freeflow/functions.php:59
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/freeflow/include/class-entries-list.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/freeflow/templates/freeflow-bar.php on line 10
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
freeflow/freeflow.php Passed 13 tests
The main PHP script in "FreeFlow Content Plugin for WordPress" version 1.0.1 is automatically included on every request by WordPress
85 characters long description:
Give visitors a sampling of your paid content and increase your subscription revenue.
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
Good job! No executable or dangerous file extensions detected1,189 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 314 | 165 | 1,062 |
JavaScript | 4 | 23 | 6 | 77 |
CSS | 2 | 10 | 2 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon16.png | 1.60KB | 0.86KB | ▼ 46.49% |