Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.42MB] [CPU: ▼277.01ms] Passed 4 tests
An overview of server-side resources used by Airpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.21 ▲4.70 | 78.00 ▲27.83 |
Dashboard /wp-admin | 8.23 ▲4.82 | 59.85 ▲26.54 |
Posts /wp-admin/edit.php | 8.23 ▲4.59 | 68.68 ▲26.14 |
Add New Post /wp-admin/post-new.php | 10.54 ▲3.57 | 116.48 ▼1,183.78 |
Media Library /wp-admin/upload.php | 8.23 ▲4.94 | 48.60 ▲23.07 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.23 | 47.36 |
Server storage [IO: ▲4.22MB] [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: 197 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_accounts |
fs_debug_mode |
fs_active_plugins |
fs_gdpr |
Browser metrics Passed 4 tests
Checking browser requirements for Airpress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,976 ▲254 | 16.11 ▲0.16 | 10.44 ▲4.89 | 2.37 ▲0.05 |
Dashboard /wp-admin | 2,977 ▲119 | 6.19 ▼0.10 | 119.62 ▼14.40 | 171.95 ▲8.98 |
Posts /wp-admin/edit.php | 2,778 ▲87 | 3.28 ▲0.05 | 64.11 ▼2.99 | 157.89 ▲15.03 |
Add New Post /wp-admin/post-new.php | 1,699 ▼53 | 15.85 ▼5.76 | 411.29 ▼46.32 | 155.69 ▼6.15 |
Media Library /wp-admin/upload.php | 1,788 ▲90 | 5.58 ▲0.08 | 146.69 ▲7.93 | 204.92 ▲16.20 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,472 | 2.54 | 55.76 | 113.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/airpress/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 4 options
- fs_accounts
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/airpress/freemius/templates/ajax-loader.php
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/airpress/lib/chetmac/AirpressForm.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/airpress/lib/chetmac/AirpressForm.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/airpress/lib/chetmac/AirpressForm.php on line 5
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/airpress/freemius/templates/account/partials/addon.php on line 6
- > PHP Warning
strpos(): Offset not contained in string in wp-content/plugins/airpress/lib/chetmac/AirpressForm.php on line 194
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/airpress/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/airpress/lib/chetmac/AirpressAdmin.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/airpress/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/airpress/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/airpress/lib/chetmac/AirpressVirtualFieldsAdmin.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== airpress ===
)
airpress/airpress.php Passed 13 tests
The entry point to "Airpress" version 1.1.62 is a PHP file that has certain tags in its header comment area
88 characters long description:
Extend Wordpress Posts, Pages, and Custom Fields with data from remote Airtable records.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin51,012 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,662 | 16,498 | 34,066 |
PO File | 13 | 7,531 | 9,161 | 16,474 |
Markdown | 2 | 83 | 0 | 226 |
JavaScript | 4 | 35 | 59 | 205 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 82.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,292 | |
▷ Static methods | 178 | 13.78% |
▷ Public methods | 905 | 70.05% |
▷ Protected methods | 56 | 4.33% |
▷ Private methods | 331 | 25.62% |
Functions | 186 | |
▷ Named functions | 184 | 98.92% |
▷ Anonymous functions | 2 | 1.08% |
Constants | 122 | |
▷ Global constants | 96 | 78.69% |
▷ Class constants | 26 | 21.31% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |