68% writeaid-integration

Code Review | WriteAid Integration

WordPress plugin WriteAid Integration scored68%from 54 tests.

About plugin

  • Plugin page: writeaid-integration
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 17, 2018
  • Latest release: Oct 13, 2022
  • Number of updates: 19
  • Update frequency: every 81.6 days
  • Top authors: writeaid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /719 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.58MB] [CPU: ▼21.74ms] Passed 4 tests

Analyzing server-side resources used by WriteAid Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.1653.58 ▲6.11
Dashboard /wp-admin3.72 ▲0.0949.72 ▼18.67
Posts /wp-admin/edit.php3.78 ▲0.1053.08 ▲1.03
Add New Post /wp-admin/post-new.php3.53 ▼2.6242.92 ▼69.56
Media Library /wp-admin/upload.php3.58 ▲0.1038.59 ▲0.24
WriteAid /wp-admin/options-general.php?page=writeaid-integration3.5634.95

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WriteAid Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.30 ▼0.071.73 ▼0.1940.29 ▼9.82
Dashboard /wp-admin2,221 ▲505.65 ▼0.0293.22 ▼36.9839.43 ▼4.38
Posts /wp-admin/edit.php2,127 ▲452.02 ▼0.0341.43 ▲1.7438.60 ▼0.15
Add New Post /wp-admin/post-new.php1,560 ▲1523.44 ▲0.38666.29 ▲10.9648.73 ▼4.33
Media Library /wp-admin/upload.php1,426 ▲264.23 ▲0.02100.89 ▼5.8245.97 ▲0.25
WriteAid /wp-admin/options-general.php?page=writeaid-integration8662.2026.8930.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/writeaid-integration/writeaid-integration.php+58
    Non-static method Writeaid_Integration_Deactivator::deactivate() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=writeaid-integration
    • > Notice in wp-content/plugins/writeaid-integration/admin/partials/writeaid-integration-admin-display.php+31
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/writeaid-integration/admin/partials/writeaid-integration-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: content, remote publishing, write aid, writeaid, writers

writeaid-integration/writeaid-integration.php Passed 13 tests

The main PHP file in "WriteAid Integration" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
API integration with your WriteAid.net account. Allows remote content publishing directly from WriteAid.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin528 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11259675528
CSS1040

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods41
▷ Static methods12.44%
▷ Public methods2970.73%
▷ Protected methods00.00%
▷ Private methods1229.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin