74% aiify

Code Review | Aiify Blocks - ChatGPT AI Copywriting, Content Writing, Rewriting and Editing

WordPress plugin Aiify Blocks - ChatGPT AI Copywriting, Content Writing, Rewriting and Editing scored74%from 54 tests.

About plugin

  • Plugin page: aiify
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 4, 2023
  • Latest release: Sep 17, 2023
  • Number of updates: 14
  • Update frequency: every 9.9 days
  • Top authors: instareza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /505 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.68MB] [CPU: ▲1.46ms] Passed 4 tests

Server-side resources used by Aiify Blocks - ChatGPT AI Copywriting, Content Writing, Rewriting and Editing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5941.72 ▼1.75
Dashboard /wp-admin4.04 ▲0.7453.52 ▲5.50
Posts /wp-admin/edit.php4.09 ▲0.7458.87 ▲11.24
Add New Post /wp-admin/post-new.php6.54 ▲0.6585.85 ▼8.11
Media Library /wp-admin/upload.php3.94 ▲0.7141.83 ▲10.18
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius4.3242.36

Server storage [IO: ▲5.50MB] [DB: ▲0.13MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 250 new files
Database: no new tables, 11 new options
New WordPress options
AIIFY_WRITING
fs_accounts
widget_recent-posts
widget_theysaidso_widget
AIIFY
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
fs_debug_mode
...

Browser metrics Passed 4 tests

An overview of browser requirements for Aiify Blocks - ChatGPT AI Copywriting, Content Writing, Rewriting and Editing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,028 ▲27115.21 ▲0.951.88 ▼0.2732.90 ▼7.38
Dashboard /wp-admin2,437 ▲2526.67 ▲0.82132.23 ▲27.5945.16 ▲4.28
Posts /wp-admin/edit.php2,343 ▲2513.55 ▲1.5651.77 ▲9.1533.85 ▼1.79
Add New Post /wp-admin/post-new.php1,553 ▲1123.28 ▲5.13597.94 ▲0.2933.28 ▼12.14
Media Library /wp-admin/upload.php1,486 ▲1044.29 ▲0.1088.12 ▼9.3547.66 ▲5.91
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,3143.3641.5527.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/aiify/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 11 options
    • db_upgraded
    • AIIFY
    • widget_theysaidso_widget
    • fs_debug_mode
    • fs_accounts
    • widget_recent-comments
    • fs_active_plugins
    • can_compress_scripts
    • theysaidso_admin_options
    • AIIFY_WRITING
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require(AIIFY_VENDOR/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/aiify/includes/settings.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Youniwemi\\StringTemplate\estedKeyIterator' not found in wp-content/plugins/aiify/vendor/youniwemi/string-template/benchmarks/iterator.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Youniwemi\\StringTemplate\\Engine' not found in wp-content/plugins/aiify/vendor/youniwemi/string-template/benchmarks/engine.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AIIFY\\add_action() in wp-content/plugins/aiify/includes/ai.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aiify/vendor/youniwemi/string-template/tests/StringTemplate/EngineTest.php:20
    • > PHP Warning
      include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/aiify/vendor/youniwemi/string-template/benchmarks/engine.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AIIFY\\__() in wp-content/plugins/aiify/includes/constants.php:19
    • > PHP Warning
      include(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/aiify/vendor/youniwemi/string-template/benchmarks/engine.php on line 15
    • > PHP Warning
      include(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/aiify/vendor/youniwemi/string-template/benchmarks/iterator.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aiify/vendor/youniwemi/string-template/tests/StringTemplate/NestedKeyArrayTest.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: chatgpt, ai, content, copywriting, openai...

aiify/aiify.php Passed 13 tests

"Aiify Blocks - ChatGPT AI Copywriting, Content Writing, Rewriting and Editing" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Create and edit content using Chatgpt AI. Improve your content's quality and optimize it for search engines.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected39,977 lines of code in 193 files:
LanguageFilesBlank linesComment linesLines of code
PHP1448,55818,39135,946
PO File47447951,624
Markdown647701,350
JSON1600760
JavaScript43459195
XML37044
YAML112036
CSS130013
SVG2009

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity76.47
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes62
▷ Abstract classes23.23%
▷ Concrete classes6096.77%
▷ Final classes00.00%
Methods1,437
▷ Static methods23416.28%
▷ Public methods1,03872.23%
▷ Protected methods191.32%
▷ Private methods38026.44%
Functions128
▷ Named functions10783.59%
▷ Anonymous functions2116.41%
Constants175
▷ Global constants12370.29%
▷ Class constants5229.71%
▷ Public constants52100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%