84% no-idea

Code Review | NoIdea

WordPress plugin NoIdea scored84%from 54 tests.

About plugin

  • Plugin page: no-idea
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2023
  • Latest release: Mar 4, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: eric0324 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /406 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼2.64ms] Passed 4 tests

Analyzing server-side resources used by NoIdea
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.12 ▼1.78
Dashboard /wp-admin3.32 ▲0.0247.46 ▲0.76
Posts /wp-admin/edit.php3.37 ▲0.0150.80 ▲6.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.78 ▼10.80
Media Library /wp-admin/upload.php3.24 ▲0.0132.57 ▲1.27
Settings /wp-admin/admin.php?page=no-idea-admin3.2130.57
NoIdea /wp-admin/admin.php?page=no-idea3.2129.46
Post /wp-admin/admin.php?page=no-idea-post3.2130.55

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for NoIdea
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲12114.47 ▲0.072.06 ▲0.4045.76 ▲3.58
Dashboard /wp-admin2,237 ▲464.87 ▲0.01109.19 ▲7.8940.12 ▼3.91
Posts /wp-admin/edit.php2,117 ▲312.05 ▲0.0435.39 ▼1.7739.91 ▲7.02
Add New Post /wp-admin/post-new.php1,559 ▲4523.14 ▲5.59666.52 ▼22.3358.88 ▲6.63
Media Library /wp-admin/upload.php1,422 ▲404.31 ▲0.0795.49 ▼5.5240.62 ▼2.19
Settings /wp-admin/admin.php?page=no-idea-admin8292.0222.6127.27
NoIdea /wp-admin/admin.php?page=no-idea7852.0523.1323.47
Post /wp-admin/admin.php?page=no-idea-post8752.1422.4625.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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)
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/no-idea/no-idea.php:14

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 97% 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
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2 in no-idea/assets to your readme.txt
Please take inspiration from this readme.txt

no-idea/no-idea.php Passed 13 tests

The main file in "NoIdea" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Easily and quickly produce content through OpenAI.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected360 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP64341301
XML40044
Markdown19015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.60
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
There were not PNG files found in your plugin