83% servicio-de-tutopic

Code Review | Comprar artículos y contenido — Tutopic

WordPress plugin Comprar artículos y contenido — Tutopic scored83%from 54 tests.

About plugin

  • Plugin page: servicio-de-tutopic
  • Plugin version: 1.18
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Mar 26, 2021
  • Latest release: Jul 15, 2021
  • Number of updates: 13
  • Update frequency: every 8.7 days
  • Top authors: foziw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /510 total downloads

Benchmarks

Plugin footprint 82% 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: ▼0.13MB] [CPU: ▼11.72ms] 75% from 4 tests

An overview of server-side resources used by Comprar artículos y contenido — Tutopic
Please have a look at the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 517.94ms on /wp-admin/options-general.php?page=settings-tutopic-screen)
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5746.07 ▼1.08
Dashboard /wp-admin3.87 ▲0.5755.59 ▲3.15
Posts /wp-admin/edit.php3.92 ▲0.5753.96 ▲2.85
Add New Post /wp-admin/post-new.php3.68 ▼2.2142.39 ▼51.80
Media Library /wp-admin/upload.php3.79 ▲0.5743.95 ▲11.39
Ajustes de TuTopic /wp-admin/options-general.php?page=settings-tutopic-screen3.94517.94

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
association_user
theysaidso_admin_options
db_upgraded
orders_local
widget_recent-posts
medias_local
popalo-notifications
can_compress_scripts
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comprar artículos y contenido — Tutopic
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.35 ▲0.172.00 ▼0.0343.40 ▼2.29
Dashboard /wp-admin2,251 ▲715.69 ▲0.0494.09 ▼9.9536.37 ▼6.42
Posts /wp-admin/edit.php2,160 ▲632.23 ▲0.2835.81 ▼0.3832.16 ▼2.00
Add New Post /wp-admin/post-new.php1,584 ▲5618.08 ▼4.86667.42 ▼11.5748.06 ▼6.42
Media Library /wp-admin/upload.php1,456 ▲624.49 ▲0.28100.86 ▼2.2037.99 ▼5.78
Ajustes de TuTopic /wp-admin/options-general.php?page=settings-tutopic-screen1,1271.7729.6753.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_recent-comments
    • association_competences
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • association_user
    • medias_local
    • widget_recent-posts
    • popalo-notifications
    • orders_local
    • db_upgraded
    • ...

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 107× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TuTopicPlugin\\Service\\TuTopic' not found in wp-content/plugins/servicio-de-tutopic/templates/options-page.template.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/servicio-de-tutopic/index.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servicio-de-tutopic/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: redactores para tu blog, comprar contenido, comprar artculos, contenido, contenido profesional...

servicio-de-tutopic/index.php 62% from 13 tests

The entry point to "Comprar artículos y contenido — Tutopic" version 1.18 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("servicio-de-tutopic.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")

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
There were no executable files found in this plugin16,335 lines of code in 206 files:
LanguageFilesBlank linesComment linesLines of code
PHP1581,5941,8565,836
CSS81261373,630
SVG1002,671
Sass1434341,768
LESS1434441,758
JSON300274
JavaScript7115140269
Markdown1820129

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity4.55
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes141
▷ Abstract classes10.71%
▷ Concrete classes14099.29%
▷ Final classes00.00%
Methods276
▷ Static methods12244.20%
▷ Public methods23986.59%
▷ Protected methods3111.23%
▷ Private methods62.17%
Functions14
▷ Named functions642.86%
▷ Anonymous functions857.14%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/transparencia-superior-girada.png33.25KB14.61KB▼ 56.08%
assets/icons/config.png3.99KB1.59KB▼ 60.18%
assets/icons/inbox.png3.67KB0.92KB▼ 74.93%
assets/icons/go-to.png3.86KB1.41KB▼ 63.37%
assets/images/bg-naranja-modal.png6.71KB3.19KB▼ 52.56%