79% airstory

Code Review | Airstory

WordPress plugin Airstory scored79%from 54 tests.

About plugin

  • Plugin page: airstory
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: May 31, 2017
  • Latest release: Jul 13, 2021
  • Number of updates: 19
  • Update frequency: every 79.9 days
  • Top authors: stevegrunwell (78.95%)stevendluke (26.32%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,007 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3444.47 ▼0.21
Dashboard /wp-admin3.64 ▲0.2953.68 ▼11.13
Posts /wp-admin/edit.php3.75 ▲0.4051.79 ▼0.02
Add New Post /wp-admin/post-new.php3.51 ▼2.3739.88 ▼61.27
Media Library /wp-admin/upload.php3.56 ▲0.3338.48 ▲0.90
Airstory /wp-admin/tools.php?page=airstory3.5637.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.73 ▲0.381.76 ▼0.0640.30 ▼4.95
Dashboard /wp-admin2,199 ▲225.57 ▼0.0292.65 ▲0.3238.87 ▼5.51
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0742.07 ▲4.3337.31 ▲2.37
Add New Post /wp-admin/post-new.php1,529 ▲323.62 ▲0.49638.43 ▼87.8350.35 ▼5.88
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.0494.19 ▼17.5342.51 ▼5.25
Airstory /wp-admin/tools.php?page=airstory9791.9923.9538.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP144031,0551,409
Markdown4710170
JSON20092
JavaScript181616

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 code0.30
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1254.55%
▷ Protected methods1045.45%
▷ Private methods00.00%
Functions50
▷ Named functions4998.00%
▷ Anonymous functions12.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.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