74% tematres-wp-integration

Code Review | Tematres WP Integration Plugin

WordPress plugin Tematres WP Integration Plugin scored74%from 54 tests.

About plugin

  • Plugin page: tematres-wp-integ...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2022
  • Latest release: Dec 1, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: becahp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /133 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
This plugin's installer ran successfully

Server metrics [RAM: ▼1.65MB] [CPU: ▼50.00ms] Passed 4 tests

Server-side resources used by Tematres WP Integration Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.129.92 ▼32.36
Dashboard /wp-admin2.36 ▼0.9513.62 ▼36.70
Posts /wp-admin/edit.php2.36 ▼1.0013.09 ▼39.11
Add New Post /wp-admin/post-new.php2.36 ▼3.5311.04 ▼91.84
Media Library /wp-admin/upload.php2.36 ▼0.879.85 ▼30.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Tematres WP Integration Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.88 ▼0.497.74 ▲5.8144.46 ▲2.05
Dashboard /wp-admin2,225 ▲345.84 ▼0.01100.17 ▼4.2540.04 ▲0.03
Posts /wp-admin/edit.php2,108 ▲192.03 ▲0.0241.67 ▲4.7634.35 ▼1.81
Add New Post /wp-admin/post-new.php1,535 ▼923.23 ▲4.99609.22 ▼52.1953.62 ▲1.94
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.1295.91 ▼31.6242.46 ▼11.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/tematres-wp-integration/functions.php+390
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

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 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: Call to undefined function plugin_dir_path() in wp-content/plugins/tematres-wp-integration/functions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tematres-wp-integration/functions-api.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/tematres-wp-integration/pagina-configuracao-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: tematres, custom tags

tematres-wp-integration/functions.php 85% from 13 tests

The main PHP script in "Tematres WP Integration Plugin" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.4" instead of "6.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tematres-wp-integration.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,124 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2197904
CSS11036587
PHP310598476
PO File13944111
Markdown116045
JSON1001

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.21
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%
Functions25
▷ Named functions2392.00%
▷ Anonymous functions28.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin