74% copywriter-robin

Code Review | Copywriter Robin's Blog Generator: AI-Powered and Effortless Blogging

WordPress plugin Copywriter Robin's Blog Generator: AI-Powered and Effortless Blogging scored74%from 54 tests.

About plugin

  • Plugin page: copywriter-robin
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Feb 1, 2023
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: virakle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /596 total downloads

Benchmarks

Plugin footprint 65% 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.16MB] [CPU: ▲0.22ms] Passed 4 tests

Server-side resources used by Copywriter Robin's Blog Generator: AI-Powered and Effortless Blogging
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3336.99 ▼4.18
Dashboard /wp-admin3.50 ▲0.1945.09 ▼4.66
Posts /wp-admin/edit.php3.55 ▲0.1949.39 ▲3.32
Add New Post /wp-admin/post-new.php6.01 ▲0.1391.99 ▲6.41
Media Library /wp-admin/upload.php3.36 ▲0.1340.85 ▲7.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 111 new files
Database: 1 new table, 6 new options
New tables
wp_copywriter_robin_plugin_users
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Copywriter Robin's Blog Generator: AI-Powered and Effortless Blogging: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.27 ▼1.411.76 ▼0.1336.56 ▼8.98
Dashboard /wp-admin2,227 ▲394.88 ▼0.97106.38 ▲2.4783.40 ▲44.84
Posts /wp-admin/edit.php2,110 ▲242.01 ▼0.0038.84 ▲0.4239.33 ▲6.10
Add New Post /wp-admin/post-new.php1,551 ▲3122.95 ▼0.29738.76 ▲61.1761.67 ▲6.54
Media Library /wp-admin/upload.php1,403 ▲154.27 ▲0.03106.06 ▲0.8485.41 ▲43.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_copywriter_robin_plugin_users
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/copywriter-robin/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/copywriter-robin/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\RepositoryInterface' not found in wp-content/plugins/copywriter-robin/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php:11
    • > PHP Notice
      Undefined index: GIPHY_API_KEY in wp-content/plugins/copywriter-robin/pages/generated.php on line 2
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/copywriter-robin/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/copywriter-robin/pages/generated.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/copywriter-robin/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/copywriter-robin/vendor/graham-campbell/result-type/src/Success.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/copywriter-robin/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/copywriter-robin/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

copywriter-robin/copywriter-robin.php 92% from 13 tests

The primary PHP file in "Copywriter Robin's Blog Generator: AI-Powered and Effortless Blogging" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,936 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
PHP801,0342,5696,947
JSON800765
CSS1300187
Markdown313037

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity8.18
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces16
Interfaces9
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes4080.00%
Methods355
▷ Static methods13538.03%
▷ Public methods30686.20%
▷ Protected methods00.00%
▷ Private methods4913.80%
Functions164
▷ Named functions11368.90%
▷ Anonymous functions5131.10%
Constants28
▷ Global constants725.00%
▷ Class constants2175.00%
▷ Public constants942.86%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/copywriter_old.png31.24KB12.42KB▼ 60.25%
images/banner-1544x500.png110.63KB39.48KB▼ 64.31%
images/banner-772x250.png66.22KB17.64KB▼ 73.36%
images/copywriter-icon.png2.76KB1.63KB▼ 41.22%
images/copywriter-new.png30.78KB11.56KB▼ 62.44%