84% demomentsomtres-equips

Code Review | DeMomentSomTres Teams

WordPress plugin DeMomentSomTres Teams scored 84% from 54 tests.

About plugin

  • Plugin page: demomentsomtres-e...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2013
  • Latest release: May 16, 2014
  • Number of updates: 4
  • Update frequency: every 104.5 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,101 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.04MB] [CPU: ▼3.63ms] Passed 4 tests

Server-side resources used by DeMomentSomTres Teams
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.41 ▲3.00
Dashboard /wp-admin3.35 ▲0.0451.94 ▼1.70
Posts /wp-admin/edit.php3.40 ▲0.0451.84 ▼7.91
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.09 ▼7.90
Media Library /wp-admin/upload.php3.28 ▲0.0442.38 ▲7.41
Temporades /wp-admin/edit-tags.php?taxonomy=temporada&post_type=equip3.2737.30
Afegir /wp-admin/post-new.php?post_type=equip3.4253.93
Equips /wp-admin/edit.php?post_type=equip3.3240.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for DeMomentSomTres Teams
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲4513.68 ▲0.501.72 ▼0.1944.65 ▼4.67
Dashboard /wp-admin2,237 ▲285.91 ▲1.04109.16 ▲8.8539.27 ▼3.67
Posts /wp-admin/edit.php2,123 ▲342.04 ▲0.0540.24 ▲0.6735.93 ▲0.36
Add New Post /wp-admin/post-new.php1,559 ▲4523.18 ▲5.60687.63 ▲12.7355.89 ▲5.77
Media Library /wp-admin/upload.php1,419 ▲284.19 ▲0.0195.92 ▼5.4241.42 ▼2.10
Temporades /wp-admin/edit-tags.php?taxonomy=temporada&post_type=equip1,2682.1432.2030.14
Afegir /wp-admin/post-new.php?post_type=equip2,5958.06173.6968.42
Equips /wp-admin/edit.php?post_type=equip1,1272.0733.9135.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/demomentsomtres-equips/index.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: sports team, custom post type

demomentsomtres-equips/index.php 92% from 13 tests

The entry point to "DeMomentSomTres Teams" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("demomentsomtres-equips.php" instead of "index.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 detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13947

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin