90% create-eye-catch-for-classic

Code Review | Create Eye Catch For Classic

WordPress plugin Create Eye Catch For Classic scored90%from 54 tests.

About plugin

  • Plugin page: create-eye-catch-...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2022
  • Latest release: Sep 28, 2023
  • Number of updates: 13
  • Update frequency: every 23.8 days
  • Top authors: nove2b (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /257 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: ▼0.42ms] Passed 4 tests

An overview of server-side resources used by Create Eye Catch For Classic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.09 ▲5.17
Dashboard /wp-admin3.31 ▲0.0145.55 ▼3.50
Posts /wp-admin/edit.php3.37 ▲0.0144.81 ▼2.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.09 ▼1.03
Media Library /wp-admin/upload.php3.24 ▲0.0138.37 ▲7.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Create Eye Catch For Classic
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.28 ▼1.125.07 ▲2.9240.13 ▼2.16
Dashboard /wp-admin2,218 ▲265.85 ▲0.9399.50 ▼3.1639.82 ▼2.85
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0038.75 ▼2.9935.03 ▼0.14
Add New Post /wp-admin/post-new.php1,365 ▼17217.15 ▼5.71578.29 ▼54.5949.40 ▼4.54
Media Library /wp-admin/upload.php1,400 ▲94.18 ▼0.01103.59 ▲9.5644.09 ▲3.07

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: eyecatch, image, ogp

create-eye-catch-for-classic/create-eye-catch.php 92% from 13 tests

This is the main PHP file of "Create Eye Catch For Classic" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("create-eye-catch-for-classic.php" instead of "create-eye-catch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin289 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15043273
Markdown110016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin