83% infinity-copy

Code Review | Infinity Copy - Escritor e Gerador de Conteúdo por Inteligência Artificial

WordPress plugin Infinity Copy - Escritor e Gerador de Conteúdo por Inteligência Artificial scored83%from 54 tests.

About plugin

  • Plugin page: infinity-copy
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2023
  • Latest release: Jan 30, 2023
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: infinitycopy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /399 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.21ms] Passed 4 tests

An overview of server-side resources used by Infinity Copy - Escritor e Gerador de Conteúdo por Inteligência Artificial
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.09 ▼5.18
Dashboard /wp-admin3.35 ▲0.0049.13 ▼19.00
Posts /wp-admin/edit.php3.47 ▲0.1148.23 ▼4.40
Add New Post /wp-admin/post-new.php6.01 ▲0.1196.20 ▼8.27
Media Library /wp-admin/upload.php3.28 ▲0.0439.54 ▲2.30
Infinity Copy /wp-admin/options-general.php?page=infinity-copy3.2633.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Infinity Copy - Escritor e Gerador de Conteúdo por Inteligência Artificial
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.34 ▼0.011.71 ▼0.0537.49 ▼4.95
Dashboard /wp-admin2,198 ▲185.55 ▼0.1095.36 ▼7.2545.67 ▲2.91
Posts /wp-admin/edit.php2,109 ▲92.15 ▲0.1441.17 ▲4.7745.60 ▲7.28
Add New Post /wp-admin/post-new.php1,531 ▲323.40 ▲0.31677.99 ▼30.4783.41 ▲26.95
Media Library /wp-admin/upload.php1,406 ▲124.23 ▲0.03110.19 ▲4.4550.60 ▲5.55
Infinity Copy /wp-admin/options-general.php?page=infinity-copy8752.1226.6048.16

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WPInfinityCopyApi' not found in wp-content/plugins/infinity-copy/classes/wp-infinity-copy-post.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/infinity-copy/includes/settings-page.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WPInfinityCopyApi' not found in wp-content/plugins/infinity-copy/classes/wp-infinity-copy-category.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

infinity-copy/infinity-copy.php 77% from 13 tests

The principal PHP file in "Infinity Copy - Escritor e Gerador de Conteúdo por Inteligência Artificial" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 212 characters long)
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 76 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin589 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP87229366
CSS111173
Markdown120036
SVG10014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods25
▷ Static methods25100.00%
▷ Public methods2184.00%
▷ Protected methods416.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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