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.35MB] [CPU: ▼18.16ms] Passed 4 tests
This is a short check of server-side resources used by Airstory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 44.47 ▼0.21 |
Dashboard /wp-admin | 3.64 ▲0.29 | 53.68 ▼11.13 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.79 ▼0.02 |
Add New Post /wp-admin/post-new.php | 3.51 ▼2.37 | 39.88 ▼61.27 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.48 ▲0.90 |
Airstory /wp-admin/tools.php?page=airstory | 3.56 | 37.74 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Airstory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.73 ▲0.38 | 1.76 ▼0.06 | 40.30 ▼4.95 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.02 | 92.65 ▲0.32 | 38.87 ▼5.51 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.07 | 42.07 ▲4.33 | 37.31 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.62 ▲0.49 | 638.43 ▼87.83 | 50.35 ▼5.88 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.23 ▲0.04 | 94.19 ▼17.53 | 42.51 ▼5.25 |
Airstory /wp-admin/tools.php?page=airstory | 979 | 1.99 | 23.95 | 38.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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 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 fix the following items
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'AIRSTORY_DIR/includes/lib/wp-async-task/wp-async-task.php' (include_path='.:/usr/share/php') in wp-content/plugins/airstory/includes/async-tasks.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\Settings\\add_action() in wp-content/plugins/airstory/includes/settings.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\Connection\\add_action() in wp-content/plugins/airstory/includes/connection.php:169
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\Compatibility\\add_filter() in wp-content/plugins/airstory/includes/compatibility.php:29
- > PHP Warning
require_once(AIRSTORY_DIR/includes/lib/wp-async-task/wp-async-task.php): failed to open stream: No such file or directory in wp-content/plugins/airstory/includes/async-tasks.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\Tools\\add_action() in wp-content/plugins/airstory/includes/tools.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\Formatting\\add_filter() in wp-content/plugins/airstory/includes/formatting.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\Connection\\add_action() in wp-content/plugins/airstory/includes/connection.php:169
- > PHP Warning
Use of undefined constant AIRSTORY_DIR - assumed 'AIRSTORY_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/airstory/includes/async-tasks.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function Airstory\\AsyncTasks\\add_action() in wp-content/plugins/airstory/includes/async-tasks.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=airstory
- > Network (severe)
/index.php/wp-json/airstory/v1 - Failed to load resource: net::ERR_CONNECTION_REFUSED
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: airstory, import, content, writing, publishing...
airstory/airstory.php Passed 13 tests
The main PHP file in "Airstory" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Send your blog posts from Airstory writing software to WordPress for publication.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,687 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 403 | 1,055 | 1,409 |
Markdown | 4 | 71 | 0 | 170 |
JSON | 2 | 0 | 0 | 92 |
JavaScript | 1 | 8 | 16 | 16 |
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.30 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 54.55% |
▷ Protected methods | 10 | 45.45% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 49 | 98.00% |
▷ Anonymous functions | 1 | 2.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin